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
Kevin Bracey 2019-01-29 10:43:19 +02:00
parent d1b367fbab
commit f60bb8f3a7
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ MBED_FORCEINLINE void core_util_atomic_flag_clear(volatile core_util_atomic_flag
{
MBED_BARRIER();
flagPtr->_flag = false;
MBED_BARRIER();
}
/**