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
pull/7727/head
Martin Kojtal 2018-08-08 09:57:59 +01:00
parent 273a052e89
commit 7a44185c1c
1 changed files with 3 additions and 3 deletions

View File

@ -194,9 +194,9 @@ public:
private:
T _pool[BufferSize];
volatile CounterType _head;
volatile CounterType _tail;
volatile bool _full;
CounterType _head;
CounterType _tail;
bool _full;
};
/**@}*/