File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ typedef struct ompi_wait_sync_t {
3030#define REQUEST_COMPLETED (void*)1L
3131
3232#define SYNC_WAIT (sync ) (opal_using_threads() ? sync_wait_mt (sync) : sync_wait_st (sync))
33- #define PTHREAD_COND_INIT (a ,b ) (opal_using_threads() ? pthread_cond_init (a,b) : 0)
34- #define PTHREAD_MUTEX_INIT (a ,b ) (opal_using_threads() ? pthread_mutex_init (a,b) : 0)
3533
3634#define WAIT_SYNC_RELEASE (sync ) \
3735 if (opal_using_threads()) { \
@@ -64,8 +62,8 @@ static inline int sync_wait_st (ompi_wait_sync_t *sync)
6462 (sync)->prev = NULL; \
6563 (sync)->status = 0; \
6664 if (opal_using_threads()) { \
67- PTHREAD_COND_INIT (&(sync)->condition, NULL); \
68- PTHREAD_MUTEX_INIT (&(sync)->lock, NULL); \
65+ pthread_cond_init (&(sync)->condition, NULL); \
66+ pthread_mutex_init (&(sync)->lock, NULL); \
6967 } \
7068 } while(0)
7169
You can’t perform that action at this time.
0 commit comments