浏览代码

Use a macro instead of a typedef for _starpu_pthread_barrier_t: common/barrier.h won't get included to define pthread_barrier_t when the system does not have barriers (e.g. Darwin) since it includes common/utils.h

Samuel Thibault 12 年之前
父节点
当前提交
c3360e3cd8
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/common/utils.h

+ 1 - 3
src/common/utils.h

@@ -405,9 +405,7 @@ typedef pthread_cond_t _starpu_pthread_cond_t;
 } while (0)
 #endif
 
-#include <common/barrier.h>
-
-typedef pthread_barrier_t _starpu_pthread_barrier_t;
+#define _starpu_pthread_barrier_t pthread_barrier_t
 /*
  * Encapsulation of the pthread_barrier_* functions.
  */