MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / ~AudioThread

Method ~AudioThread

src/audio/AudioThread.cpp:29–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29AudioThread::~AudioThread() {
30
31 if (controllerThread != nullptr) {
32
33 //
34 //NOT PROTECTED by m_mutex on purpose, to prevent deadlocks with controllerThread
35 // it doesn't matter, it is only called when all "normal" audio threads are detached from the controller.
36 //
37
38 terminate();
39 controllerThread->join();
40 delete controllerThread;
41 controllerThread = nullptr;
42 }
43}
44
45std::recursive_mutex & AudioThread::getMutex()
46{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected