E
emma middlebrook
Hi
My main UI thread needs to create a worker thread. To signal that the
work is finished the UI should be updated.
I'm worried about that worker thread calling back via a delegate when
it has finished its work. UI stuff is message-queue based and handled
by a single thread spinning the standard message loop. But the worker
thread calling back is obviously a different thread and, of course,
isn't going to be 'serialized' by the message queue in any way.
So, how best to do update the UI safely?
Hope this makes sense.
Emma Middlebrook
My main UI thread needs to create a worker thread. To signal that the
work is finished the UI should be updated.
I'm worried about that worker thread calling back via a delegate when
it has finished its work. UI stuff is message-queue based and handled
by a single thread spinning the standard message loop. But the worker
thread calling back is obviously a different thread and, of course,
isn't going to be 'serialized' by the message queue in any way.
So, how best to do update the UI safely?
Hope this makes sense.
Emma Middlebrook