Alexander Mashin
Alexander Mashin

Reputation: 49

Terminate boost thread (C++)

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

Answers (1)

Igor R.
Igor R.

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

Related Questions