Skip to content

Commit 9609183

Browse files
authored
Merge pull request #9655 from devreal/atomic_lock_init_memorder
Relax memory order in opal_atomic_lock_init
2 parents 22d9937 + 19178df commit 9609183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/include/opal/sys/atomic_stdc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ typedef atomic_flag opal_atomic_lock_t;
241241
*/
242242
static inline void opal_atomic_lock_init(opal_atomic_lock_t *lock, bool value)
243243
{
244-
atomic_flag_clear(lock);
244+
atomic_flag_clear_explicit(lock, memory_order_relaxed);
245245
}
246246

247247
static inline int opal_atomic_trylock(opal_atomic_lock_t *lock)

0 commit comments

Comments
 (0)