mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Revision:
101:7cff1c4259d7
Parent:
98:8ab26030e058
Child:
122:f9eeca106725
diff -r cbbeb26dbd92 -r 7cff1c4259d7 CircularBuffer.h
--- a/CircularBuffer.h	Wed May 27 08:07:35 2015 +0100
+++ b/CircularBuffer.h	Tue Jun 09 14:29:26 2015 +0100
@@ -88,9 +88,9 @@
 
 private:
     T _pool[BufferSize];
-    CounterType _head;
-    CounterType _tail;
-    bool _full;
+    volatile CounterType _head;
+    volatile CounterType _tail;
+    volatile bool _full;
 };
 
 }