title: OpenMP: Include atomic section into parrallel region declaration
body: <p>I have a parallel region where I monitor the progress. This means I use the the variable <code>iteration</code> to calculate the current state of the loop (percentage: 0 - 100 until loop is finished).</p>
  
  <p>For this I increment with an <code>atomic</code> operation. Is there a way to make the code shorter, maybe by including <code>iteration++</code> into the <code>#pragma omp parallel for </code> clause?</p>
  
  <pre><code>  int iteration = 0;
  #pragma omp parallel for 
    for (int64_t ip = 0; ip &lt; num_voxels; ip++)
    {
      // calc stuff
  #pragma omp atomic
      iteration++;
      // output stuff
      // if thread == 0:
      // Progress(iteration / num_voxels * 100);
    }
  </code></pre>