I'm using the boost::thread library (V1.44) to support threads in my C++ project. The user needs to be able to pause the execution of a test loop, that's running in its own thread, for an unlimited amount of time and be able to resume it whenever he pleases. Under Windows I solved it like this bool ContintueLoop(){ if(testLoopPaused){ //testLoopPaused can be set by the user via GUI elements try{ b
![Pausing a boost::thread for unlimited time](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)