title: Get return code from std::thread?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7686939/c-simple-return-value-from-stdthread">C++: Simple return value from std::thread?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there anyway to get the return code from a std::thread? I have a function which returns a integer, and I want to be able to get the return code from the function when the thread is done executing.</p>