mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-05 22:40:16 +01:00
changed to atomic and called mutex lock
This commit is contained in:
@@ -152,8 +152,10 @@ void Playback::setVector(std::vector<FilterValue> v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setFilterMapEx(std::unordered_map<std::string, FilterValue> f) {
|
void Playback::setFilterMapEx(std::unordered_map<std::string, FilterValue> f) {
|
||||||
|
mutex.lock();
|
||||||
filter_map_ex_set = f;
|
filter_map_ex_set = f;
|
||||||
setFilterMap = true;
|
setFilterMap = true;
|
||||||
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long Playback::calcMem() {
|
unsigned long Playback::calcMem() {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ private:
|
|||||||
std::atomic<int> fps_delay;
|
std::atomic<int> fps_delay;
|
||||||
std::vector<std::string> draw_strings;
|
std::vector<std::string> draw_strings;
|
||||||
std::unordered_map<std::string, FilterValue> filter_map_ex;
|
std::unordered_map<std::string, FilterValue> filter_map_ex;
|
||||||
bool setFilterMap = false;
|
std::atmoic<bool> setFilterMap;
|
||||||
std::unordered_map<std::string, FilterValue> filter_map_ex_set;
|
std::unordered_map<std::string, FilterValue> filter_map_ex_set;
|
||||||
public:
|
public:
|
||||||
Playback(QObject *parent = 0);
|
Playback(QObject *parent = 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user