April 2nd, 2009, 08:59 PM
How to work with diferrent thread contexts
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
Last edited by SNArruda; April 2nd, 2009 at 09:02 PM.
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!