Skip to content

Commit c1ab43c

Browse files
authored
Code style updated
1 parent 69e6f11 commit c1ab43c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

platform/CircularBuffer.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,20 @@ class CircularBuffer {
106106
}
107107

108108
/** Get the number of elements currently stored in the circular_buffer */
109-
CounterType size() const
110-
{
109+
CounterType size() const {
111110
core_util_critical_section_enter();
112111
CounterType elements;
113-
if (!_full)
114-
{
115-
if (_head < _tail)
112+
if (!_full) {
113+
if (_head < _tail) {
116114
elements = BufferSize + _head - _tail;
117-
else
115+
}
116+
else {
118117
elements = _head - _tail;
118+
}
119119
}
120-
else
120+
else {
121121
elements = BufferSize;
122+
}
122123
core_util_critical_section_exit();
123124
return elements;
124125
}

0 commit comments

Comments
 (0)