|
You could instantiate an Event (you have to define the class) containing the status of the GUI every time the GUI changes, on the GUI thread. The same GUI thread will store these events in a queue of events (synchronized). When the socket thread wakes up will process the events in the queue. On the socket thread you can implement whatever policy for processing you want - process the whole history or only the last state, etc. Hope it helps, I am not sure I got the problem right.
__________________
Daniel @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
Last edited by danielstoner : 04-23-2008 at 11:37 PM.
|