|
-
May 17th, 2002, 06:29 AM
#1
Worker Thread
I have two threads: a UI thread and a worker thread. From time to time I send some messages from the worker thread to the UI thread in order to update some user interface elements.
That's ok. But I was thinking (as an exercise), what if, I send messages from the UI thread to the worker thread.
Of course the worker thread does not have a message queue, but if I create a hidden window, and in the main loop of the worker thread I will check for incoming messages , it will work ?
What do U think about. Does anyone tried this ????
10x in advance
Good answers will be rated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|