-
December 16th, 2014, 10:12 AM
#16
Re: WinAPI timer vs thread?
Originally Posted by joseph_w
The conclusion that I have reached is that there is no harm in manipulating the UI controls from a worker thread, but from a design perspective (and to prevent deadlocks) it is a better idea to only make the UI thread responsible for manipulating the UI controls.
Kind of. You need to be aware that any writeable shared data between the UI thread and worker thread(s) needs to be synchronize. And don't forget the negative impact of using SendMessage to communicate between worker threads and the UI threads.
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
|