title: pthread_create(), how do I get the returned value from the passed function
body: <p>How do I get the returned void pointer of the function that I pass the pthread_create?</p>
  
  <pre><code>static void* pthread_sendRequest(void* name){
      RequestChannel chan(*(string*) name, RequestChannel::CLIENT_SIDE);
      string returnValue = chan.send_request("Hi");
      return (void*) &amp;returnValue;
  
  }
  
  pthread_create(thread, NULL, pthread_sendRequest, new string(&amp;"worker #" [i]));
  </code></pre>
  
  <p>How do I get the return value, of pthread_sendRequest when it is passed to pthread_ create, so I can cast it back to a string pointer and get the actual string?</p>
  
  <p>Does the void** in pthread_join(thread, void**) grab it for me? </p>