Skip to content

Commit 9ba8c5e

Browse files
make load atomic
1 parent 48bc08e commit 9ba8c5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/include/platform/CircularBuffer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "platform/mbed_critical.h"
2222
#include "platform/mbed_assert.h"
2323
#include "platform/Span.h"
24+
#include "platform/mbed_atomic.h"
2425

2526
namespace mbed {
2627

@@ -268,7 +269,7 @@ class CircularBuffer {
268269
*/
269270
bool full() const
270271
{
271-
return _full;
272+
return core_util_atomic_load_bool(&_full);
272273
}
273274

274275
/**

0 commit comments

Comments
 (0)