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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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());