| 600 | } |
| 601 | |
| 602 | CsoundPerformanceThread::~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 |
nothing calls this directly
no test coverage detected