Reputation: 49
I have one problem, I need to terminate boost thread. And do this from main thread. Using a flag is not suitable. Please help me. I need windows solution.
Upvotes: 1
Views: 1966
Reputation: 15085
Please, read the answer to the following question.
If nevertheless you must terminate thread on Windows, you can do that like this: TerminateThread(yourThread.native_handle());
Upvotes: 4