title: Terminating multithreaded application in C++11 by POSIX signal
body: <p>I wrote a simple multithreaded application in <code>C++11</code> on Linux platform and I would like to terminate the server and its running threads by sending <code>SIGINT</code> signal.</p>
  
  <p>Obviously my server application uses thread support from C++11 (<code>std::thread</code> etc.). Although I found some support for signal handling in C++11 (<code>std::signal</code>), I couldn't find any support for handling signals in multithreaded environment.</p>
  
  <p>So my question is - is there any way how to handle signals in multithreaded application in <code>C++11</code> or do I have to rely back on <code>pthreads</code> just because my application needs to deal with signals?</p>