MCPcopy Create free account
hub / github.com/csound/csound / ClearQueue

Function ClearQueue

include/csound_threaded.hpp:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 void *kperiod_callback_user_data;
170 concurrent_queue<CsoundEvent *> input_queue;
171 void ClearQueue()
172 {
173 CsoundEvent *event = 0;
174 while (input_queue.try_pop(event)) {
175 delete event;
176 }
177 }
178public:
179 CsoundThreaded() : Csound(), keep_running(false), kperiod_callback(nullptr), kperiod_callback_user_data(nullptr) {};
180 CsoundThreaded(CSOUND *csound_) : Csound(csound_), keep_running(false), kperiod_callback(nullptr), kperiod_callback_user_data(nullptr) {};

Callers 3

~CsoundThreadedFunction · 0.85
PerformRoutineFunction · 0.85
PerformAndResetRoutineFunction · 0.85

Calls 1

try_popMethod · 0.80

Tested by

no test coverage detected