| 27 | } |
| 28 | |
| 29 | AudioThread::~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 | |
| 45 | std::recursive_mutex & AudioThread::getMutex() |
| 46 | { |
nothing calls this directly
no outgoing calls
no test coverage detected