c++ - In wxwidgets, how do I lock a vector that is shared between gui thread and worker thread? -
If I can not lock on a mute x in the main application thread (my event handler because you can not lock main gia Thread), how can I share any information between my worker and my main thread?
Just your worker bag communicates with the main thread through event handling system. Use to send status messages back to the main thread and handle updates.
Comments
Post a Comment