title: OpenMP - Starting a new thread in each loop iteration
body: <p>I'm having trouble adjusting my thinking to suit OpenMP's way of doing things.</p>
  
  <p>Roughly, what I want is:</p>
  
  <pre><code>for(int i=0; i&lt;50; i++)
  {
     doStuff();
     thread t;
     t.start(callback(i)); //each time around the loop create a thread to execute callback
  }
  </code></pre>
  
  <p>I think I know how this would be done in c++11, but I need to be able to accomplish something similar with OpenMP.</p>