We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd89b8 commit c623065Copy full SHA for c623065
opal/mca/btl/ofi/btl_ofi.h
@@ -95,7 +95,7 @@ struct mca_btl_ofi_context_t {
95
opal_free_list_t frag_list;
96
97
/* for thread locking */
98
- volatile int32_t lock;
+ opal_atomic_int32_t lock;
99
};
100
typedef struct mca_btl_ofi_context_t mca_btl_ofi_context_t;
101
opal/runtime/opal_progress.c
@@ -171,7 +171,7 @@ opal_progress_finalize(void)
171
172
static int opal_progress_events(void)
173
{
174
- static volatile int32_t lock = 0;
+ static opal_atomic_int32_t lock = 0;
175
int events = 0;
176
177
if( opal_progress_event_flag != 0 && !OPAL_THREAD_SWAP_32(&lock, 1) ) {
0 commit comments