Skip to content

Commit c623065

Browse files
committed
opal: fix warning
Fixes #5713 Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 8bd89b8 commit c623065

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opal/mca/btl/ofi/btl_ofi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct mca_btl_ofi_context_t {
9595
opal_free_list_t frag_list;
9696

9797
/* for thread locking */
98-
volatile int32_t lock;
98+
opal_atomic_int32_t lock;
9999
};
100100
typedef struct mca_btl_ofi_context_t mca_btl_ofi_context_t;
101101

opal/runtime/opal_progress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ opal_progress_finalize(void)
171171

172172
static int opal_progress_events(void)
173173
{
174-
static volatile int32_t lock = 0;
174+
static opal_atomic_int32_t lock = 0;
175175
int events = 0;
176176

177177
if( opal_progress_event_flag != 0 && !OPAL_THREAD_SWAP_32(&lock, 1) ) {

0 commit comments

Comments
 (0)