MCPcopy Create free account
hub / github.com/csound/csound / ~CsoundPerformanceThread

Method ~CsoundPerformanceThread

interfaces/csPerfThread.cpp:602–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602CsoundPerformanceThread::~CsoundPerformanceThread()
603{
604 // stop performance if it is still running
605 if (!status)
606 this->Stop(); // FIXME: should handle memory errors here
607 this->Join();
608 if (queueLock) {
609 csoundDestroyMutex(queueLock);
610 }
611 if (pauseLock) {
612 csoundDestroyMutex(pauseLock);
613 }
614 if (flushLock) {
615 csoundDestroyMutex(flushLock);
616 }
617 if (recordLock) {
618 csoundDestroyMutex(recordLock);
619 }
620 if (recordData.mutex) {
621 csoundDestroyMutex(recordData.mutex);
622 }
623 if (recordData.condvar) {
624 csoundDestroyCondVar(recordData.condvar);
625 }
626}
627
628// ----------------------------------------------------------------------------
629

Callers

nothing calls this directly

Calls 4

StopMethod · 0.95
JoinMethod · 0.95
csoundDestroyMutexFunction · 0.85
csoundDestroyCondVarFunction · 0.85

Tested by

no test coverage detected