From f60bb8f3a746095267a22f1d60dde517b2f45bb8 Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Tue, 29 Jan 2019 10:43:19 +0200 Subject: [PATCH] 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. --- platform/mbed_critical.h | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/mbed_critical.h b/platform/mbed_critical.h index 63b91dbbb7a..e2545342413 100644 --- a/platform/mbed_critical.h +++ b/platform/mbed_critical.h @@ -142,6 +142,7 @@ MBED_FORCEINLINE void core_util_atomic_flag_clear(volatile core_util_atomic_flag { MBED_BARRIER(); flagPtr->_flag = false; + MBED_BARRIER(); } /**