mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 20:00:01 +01:00
added lock
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user