title: WaitForMultipleObjects alternative with std::thread?
body: <p>My problem is that I have multiple threads, they are stored in some container, and I need to know when a thread at a certain position finished.
  On windows I would do something like:</p>
  
  <pre><code>HANDLE handles[3];
  //handles were initialized
  DWORD finishingThread = WaitForMultipleObjects(3, handles, false, INFINITE)
  </code></pre>
  
  <p>Is there any way to achieve the same effect with std::thread?</p>