ctrl+c will send a SIGINT signal. boost::thread may need to complete some resource cleanup work before exiting. You can also handle SIGINT yourself. However, it is not recommended to use signals. Use condition variables under Linux. Both MESSAGE and EVENT can do this under Windows. There is a better way to use condition variables in C++11 (boost’s thread library has entered the 11 standard)
ctrl+c will send a SIGINT signal. boost::thread may need to complete some resource cleanup work before exiting. You can also handle SIGINT yourself. However, it is not recommended to use signals. Use condition variables under Linux. Both MESSAGE and EVENT can do this under Windows. There is a better way to use condition variables in C++11 (boost’s thread library has entered the 11 standard)