Skip to content

Commit 4e263b1

Browse files
author
Deepika
committed
Refactor circular buffer test to platform folder
1 parent 546743a commit 4e263b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

platform/CircularBuffer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ class CircularBuffer {
9292
core_util_critical_section_enter();
9393
if (full()) {
9494
_tail++;
95-
if(_tail == BufferSize) {
95+
if (_tail == BufferSize) {
9696
_tail = 0;
9797
}
9898
}
9999
_pool[_head++] = data;
100-
if(_head == BufferSize) {
100+
if (_head == BufferSize) {
101101
_head = 0;
102102
}
103103
if (_head == _tail) {
@@ -117,7 +117,7 @@ class CircularBuffer {
117117
core_util_critical_section_enter();
118118
if (!empty()) {
119119
data = _pool[_tail++];
120-
if(_tail == BufferSize) {
120+
if (_tail == BufferSize) {
121121
_tail = 0;
122122
}
123123
_full = false;

0 commit comments

Comments
 (0)