How to work with diferrent thread contexts
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: How to work with diferrent thread contexts

Threaded View

  1. #1
    Join Date
    Oct 2007
    Posts
    21

    How to work with diferrent thread contexts

    hi,

    I'll study about sharing data about threads but, one thing resistance to go into my mind.

    I have two threads. The primary thread that corresponding to UI thread and another to a worker thread.

    There are a way to call, from a Worker thread, a function in primary thread context without messages. Simply geting a pointer and starting it.

    Another example, if i create another worker thread, so, i will have a primary thread (UI), worker_thread_1 and worker_thread_2, and will desired call from worker_thread_1::fx(), from its context, the worker_thread_2::fy(), in its own context.

    I Realy need to do this, or samething like.

    if you need, see my .h and .cpp files attached early

    Reply·Email·View Thread·PermaLink·Bookmark
    Attached Files Attached Files
    Last edited by SNArruda; April 2nd, 2009 at 08:02 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center