title: How to break std::cin(std::cin.getline) executuion from other thread
body: <p>I have some code:</p>
  <pre><code>while(true) {
      std::string message;
      
      std::cin &gt;&gt; message; // break it
      
      // send message
    }
  </code></pre>
  <p>I want to interrupt waiting for user input from <code>std::cin</code> from other thread.<br />
  How can I do it? Thanks in advance!</p>