title: Asynchronous function call for C++
body: <p>I need a hint how to implement asynchronous function calls in C/C++ ( or names of frameworks/API calls for windows and/or linux )</p>
  
  <p>The use case is following: A parent thread calls a function. The function creates a child thread and returning, so call is non-blocking and parent thread can continue to do some job. </p>
  
  <p>For example pthread_join to get result is not suitable, so result must be stored somewhare in heap and parent must be notified about. What I want is something like callback function in parent thread, that would be executed after child thread is ready with job.</p>
  
  <p>This is surprising, but I can not find a single example in google. </p>
  
  <p>Thanks for help</p>