1

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.

Igor R.
  • 14,716
  • 2
  • 49
  • 83
Alexander Mashin
  • 49
  • 1
  • 1
  • 7

1 Answers1

4

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());

Community
  • 1
  • 1
Igor R.
  • 14,716
  • 2
  • 49
  • 83