![]() |
Audacity 3.2.0
|
Queue of MeterUpdateMsg used to feed the MeterPanel. More...
#include <MeterPanel.h>
Public Member Functions | |
MeterUpdateQueue (size_t maxLen) | |
~MeterUpdateQueue () | |
bool | Put (MeterUpdateMsg &msg) |
bool | Get (MeterUpdateMsg &msg) |
void | Clear () |
Private Attributes | |
NonInterfering< std::atomic< size_t > > | mStart { 0 } |
NonInterfering< std::atomic< size_t > > | mEnd { 0 } |
const size_t | mBufferSize |
ArrayOf< MeterUpdateMsg > | mBuffer {mBufferSize} |
Queue of MeterUpdateMsg used to feed the MeterPanel.
Definition at line 75 of file MeterPanel.h.
|
explicit |
Definition at line 192 of file MeterPanel.cpp.
References Clear().
MeterUpdateQueue::~MeterUpdateQueue | ( | ) |
Definition at line 199 of file MeterPanel.cpp.
void MeterUpdateQueue::Clear | ( | ) |
Definition at line 203 of file MeterPanel.cpp.
Referenced by MeterPanel::Clear(), MeterUpdateQueue(), MeterPanel::OnMeterUpdate(), and MeterPanel::Reset().
bool MeterUpdateQueue::Get | ( | MeterUpdateMsg & | msg | ) |
Definition at line 234 of file MeterPanel.cpp.
References PackedArray::end(), mBuffer, mBufferSize, mEnd, and mStart.
Referenced by MeterPanel::OnMeterUpdate().
bool MeterUpdateQueue::Put | ( | MeterUpdateMsg & | msg | ) |
Definition at line 211 of file MeterPanel.cpp.
References PackedArray::end(), mBuffer, mBufferSize, mEnd, and mStart.
Referenced by MeterPanel::UpdateDisplay().
|
private |
Definition at line 92 of file MeterPanel.h.
|
private |
Definition at line 91 of file MeterPanel.h.
|
private |
Definition at line 89 of file MeterPanel.h.
|
private |
Definition at line 89 of file MeterPanel.h.