소스 검색

simgrid: Avoid including xbt/synchro.h when we have the s4u equivalent

Samuel Thibault 5 년 전
부모
커밋
35cfbb1396
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      include/starpu_thread.h

+ 4 - 1
include/starpu_thread.h

@@ -25,7 +25,10 @@
 #include <starpu_util.h>
 #ifdef STARPU_SIMGRID
 #include <pthread.h>
-#ifdef STARPU_HAVE_XBT_SYNCHRO_H
+#ifdef STARPU_HAVE_SIMGRID_MUTEX_H
+#include <simgrid/mutex.h>
+#include <simgrid/cond.h>
+#elif defined(STARPU_HAVE_XBT_SYNCHRO_H)
 #include <xbt/synchro.h>
 #else
 #include <xbt/synchro_core.h>