Fixed bug in pthread barrier code
[akaros.git] / user / include / pthread.h
index e3bda01..3690aef 100644 (file)
@@ -69,12 +69,11 @@ typedef struct
 #define MAX_PTHREADS 32
 typedef struct
 {
-  int local_sense[32*MAX_PTHREADS];
   int in_use[MAX_PTHREADS];
+  int next_slot;
   volatile int sense;
   int count;
   int nprocs;
-  int next_slot;
   pthread_mutex_t pmutex;
 } pthread_barrier_t;