Browse Source

restore actually-needed _starpu_pthread_spinlock_t types. Do not include barrier. so early, it needs the mutex types

Samuel Thibault 12 years ago
parent
commit
e66027cab1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/common/utils.h

+ 4 - 1
src/common/utils.h

@@ -25,7 +25,6 @@
 #include <pthread.h>
 #include <stdlib.h>
 #include <math.h>
-#include <common/barrier.h>
 
 #ifdef STARPU_SIMGRID
 #include <xbt/synchro_core.h>
@@ -442,4 +441,8 @@ typedef pthread_barrier_t _starpu_pthread_barrier_t;
 	}                                                                      \
 } while (0)
 
+#ifdef HAVE_PTHREAD_SPIN_LOCK
+typedef pthread_spinlock_t _starpu_pthread_spinlock_t;
+#endif
+
 #endif // __COMMON_UTILS_H__