Skip to content

Commit f60bb8f

Browse files
committed
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.
1 parent d1b367f commit f60bb8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/mbed_critical.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ MBED_FORCEINLINE void core_util_atomic_flag_clear(volatile core_util_atomic_flag
142142
{
143143
MBED_BARRIER();
144144
flagPtr->_flag = false;
145+
MBED_BARRIER();
145146
}
146147

147148
/**

0 commit comments

Comments
 (0)