mirror of https://github.com/ARMmbed/mbed-os.git
Second barrier for core_util_atomic_flag_clear
As barriers were added in #9247, review comments pointed out that atomic stores needed a second barrier, and they got one. But atomic_flag_clear was missed.pull/9528/head
parent
d1b367fbab
commit
f60bb8f3a7
|
@ -142,6 +142,7 @@ MBED_FORCEINLINE void core_util_atomic_flag_clear(volatile core_util_atomic_flag
|
|||
{
|
||||
MBED_BARRIER();
|
||||
flagPtr->_flag = false;
|
||||
MBED_BARRIER();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue