title: How to tell netbeans information on pthread_barrier_t
body: <p>I can't seem to get netbeans to recognize the pthread_barrier_t type.  I can type in <code>#include&lt;pthread.h&gt;</code> okay, but no luck on pthread_barrier_t.</p>
  
  <p>The following is the build and the error:</p>
  
  <blockquote>
    <p>g++ -lpthread   -c -g -MMD -MP -MF build/Debug/GNU-MacOSX/main.o.d -o
    build/Debug/GNU-MacOSX/main.o main.cpp main.cpp:32: error:
    'pthread_barrier_t' does not name a type</p>
  </blockquote>
  
  <p>I am using Netbeans 7.1 and I am on Mac OSX 10.7.2
  I can create threads without any compile issues.</p>
  
  <pre><code>bool isNotInSteadyState()
  {
      int rc = 0;
      threadData threadDataArray[NUM_THREADS];
      int dataArrayCount = 0;
      if (NUM_THREADS &lt; ((PLATE_SIZE - 2) * (PLATE_SIZE - 2)))
      {
          for (int i = 1; i &lt; PLATE_SIZE - 1; i += sqrt(NUM_THREADS))
          {
             for (int j = 1; j &lt; PLATE_SIZE - 1; j += sqrt(NUM_THREADS))
             {
                  threadDataArray[dataArrayCount].endY = i + sqrt(NUM_THREADS) - 1;
                  threadDataArray[dataArrayCount].x = i;
                  threadDataArray[dataArrayCount].endY = j + sqrt(NUM_THREADS) - 1;
                  threadDataArray[dataArrayCount++].y = j;
                  pthread_t* thread;
  
                  int pthread_create(thread, NULL,isNotInSteadyStateCheckRunInParallel, &amp;threadDataArray[dataArrayCount]);
                  if (dataArrayCount &gt;= NUM_THREADS)
                  {
                      //pthread_barrier_init(pthread_barrier_t * barrier,
                //const pthread_barrierattr_t *restrict attr, NUM+THREADS);
                  }
                  if (rc != 0)
                  {
                          fprintf(stderr, "Steady State check failed!\n");
                  }
            }
         }
      }    
  
  }
  </code></pre>
  
  <p>Thoughts?</p>
  
  <p>Thanks,</p>