How to get return value from a function called which executes in another thread in TBB? <p>In the code:</p> <pre><code> #include &lt;tbb/tbb.h&gt; int GetSomething() { int something; // do something return something; } // ... tbb::tbb_thread(GetSomething, NULL); // ... </code></pre> <p>Here <code>GetSomething()</code> was called in another thread via its pointer. But can we get return value from <code>GetSomething()</code>? How?</p>