Skip to content

Commit 52c3af5

Browse files
authored
Merge pull request open-mpi#1811 from hjelmn/request_perfm_regression
opal/sync: fix warnings
2 parents 4c4a8bb + 55d1933 commit 52c3af5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

opal/threads/wait_sync.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)