We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48bc08e commit 9ba8c5eCopy full SHA for 9ba8c5e
platform/include/platform/CircularBuffer.h
@@ -21,6 +21,7 @@
21
#include "platform/mbed_critical.h"
22
#include "platform/mbed_assert.h"
23
#include "platform/Span.h"
24
+#include "platform/mbed_atomic.h"
25
26
namespace mbed {
27
@@ -268,7 +269,7 @@ class CircularBuffer {
268
269
*/
270
bool full() const
271
{
- return _full;
272
+ return core_util_atomic_load_bool(&_full);
273
}
274
275
/**
0 commit comments