Browse Source

Use XBT_BARRIER_SERIAL_PROCESS instead of hardcoded -1

Samuel Thibault 11 years ago
parent
commit
8f8b885f30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/starpu_thread.h

+ 1 - 1
include/starpu_thread.h

@@ -203,7 +203,7 @@ int starpu_pthread_rwlock_unlock(starpu_pthread_rwlock_t *rwlock);
 #if defined(STARPU_SIMGRID) && defined(STARPU_SIMGRID_HAVE_XBT_BARRIER_INIT)
 #if defined(STARPU_SIMGRID) && defined(STARPU_SIMGRID_HAVE_XBT_BARRIER_INIT)
 typedef xbt_bar_t starpu_pthread_barrier_t;
 typedef xbt_bar_t starpu_pthread_barrier_t;
 typedef int starpu_pthread_barrierattr_t;
 typedef int starpu_pthread_barrierattr_t;
-#define STARPU_PTHREAD_BARRIER_SERIAL_THREAD -1
+#define STARPU_PTHREAD_BARRIER_SERIAL_THREAD XBT_BARRIER_SERIAL_PROCESS
 #else
 #else
 typedef struct {
 typedef struct {
 	starpu_pthread_mutex_t mutex;
 	starpu_pthread_mutex_t mutex;