added lock

This commit is contained in:
Jared Bruni
2021-08-28 13:35:43 -07:00
parent e08cbbb510
commit 0364b01234
3 changed files with 10 additions and 2 deletions

View File

@@ -119,6 +119,13 @@ void Playback::setVector(std::vector<FilterValue> v) {
mutex_add.unlock();
}
unsigned long Playback::calcMem() {
mutex.lock();
unsigned long calc = ac::calculateMemory();
mutex.unlock();
return calc;
}
void Playback::setOptions(bool n, int c) {
mutex.lock();
ac::isNegative = n;