updates according to comments in pull request

pull/5058/head
0x6d61726b 2017-10-05 20:47:31 +02:00 committed by GitHub
parent 839cd7ee70
commit 69e6f11c2d
1 changed files with 4 additions and 3 deletions

View File

@ -104,9 +104,10 @@ public:
_full = false;
core_util_critical_section_exit();
}
/** Returns the number of available transactions the buffer contains */
CounterType available() {
/** Get the number of elements currently stored in the circular_buffer */
CounterType size() const
{
core_util_critical_section_enter();
CounterType elements;
if (!_full)