Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions opal/threads/wait_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ typedef struct ompi_wait_sync_t {
#define REQUEST_COMPLETED (void*)1L

#define SYNC_WAIT(sync) (opal_using_threads() ? sync_wait_mt (sync) : sync_wait_st (sync))
#define PTHREAD_COND_INIT(a,b) (opal_using_threads() ? pthread_cond_init (a,b) : 0)
#define PTHREAD_MUTEX_INIT(a,b) (opal_using_threads() ? pthread_mutex_init (a,b) : 0)

#define WAIT_SYNC_RELEASE(sync) \
if (opal_using_threads()) { \
Expand Down Expand Up @@ -64,8 +62,8 @@ static inline int sync_wait_st (ompi_wait_sync_t *sync)
(sync)->prev = NULL; \
(sync)->status = 0; \
if (opal_using_threads()) { \
PTHREAD_COND_INIT(&(sync)->condition, NULL); \
PTHREAD_MUTEX_INIT(&(sync)->lock, NULL); \
pthread_cond_init (&(sync)->condition, NULL); \
pthread_mutex_init (&(sync)->lock, NULL); \
} \
} while(0)

Expand Down