title: how to name a critical section in openmp in visual studio 2012
body: <p>I want to name a critical section in openmp</p>
  
  <p>I names it like this:</p>
  
  <pre><code>#pragma omp critical [RawImageFile]
  </code></pre>
  
  <p>and I am getting this error:</p>
  
  <pre><code>error C3005: '[' : unexpected token encountered on OpenMP 'critical' directive  
  </code></pre>
  
  <p>if I use it in this way:</p>
  
  <pre><code>#pragma omp critical RawImageFile
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code>error C3005: 'RawImageFile' : unexpected token encountered on OpenMP 'critical' directive   
  </code></pre>
  
  <p>if I use it in this way:</p>
  
  <pre><code>#pragma omp critical "RawImageFile"
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code> error C3005: 'string' : unexpected token encountered on OpenMP 'critical' directive
  </code></pre>
  
  <p>What is the correct syntax to name a critical section in opnmp in visual studio 2012?</p>