Skip to content

Commit 7a44185

Browse files
committed
CircularBuffer: volatile specifier removal
Volatile specifier in this case it not required as we currently have all accesses to the buffer protected by critical section. This shall optimize accesses in some cases to the buffer. Fixes #7702
1 parent 273a052 commit 7a44185

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/CircularBuffer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ class CircularBuffer {
194194

195195
private:
196196
T _pool[BufferSize];
197-
volatile CounterType _head;
198-
volatile CounterType _tail;
199-
volatile bool _full;
197+
CounterType _head;
198+
CounterType _tail;
199+
bool _full;
200200
};
201201

202202
/**@}*/

0 commit comments

Comments
 (0)