I am trying to interrupt my main Thread from another thread. When I use Boost I simply do myThread.interrupt();
but now I want to interrupt the main Thread (that is sleeping) from a boost::thread
I created.
I get to this but std::this_thread
doesn't exists in Visual C++ 2013. Is another way I can get a reference to the main Thread so I can use it later to yield()
or interrupt()
?