What's the correct/best way to communicate from worker thread to the main thread in win32 when working in OOP?
My worker thread runs in a loop, and for certain events including when the thread ends, it needs to tell the main thread, and the main thread do certain things in response.
Currently I am using WM_APP messages from the worker thread to communicate with the main thread. That doesn't look neat though.