mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Remove workaround to avoid race conditions
This commit is contained in:
@@ -90,6 +90,8 @@ struct SwitcherData {
|
||||
|
||||
std::condition_variable cv;
|
||||
std::mutex m;
|
||||
std::unique_lock<std::mutex> *mainLoopLock;
|
||||
|
||||
bool transitionActive = false;
|
||||
bool waitForTransition = false;
|
||||
bool stop = false;
|
||||
@@ -251,6 +253,7 @@ struct SwitcherData {
|
||||
void Thread();
|
||||
void Start();
|
||||
void Stop();
|
||||
std::unique_lock<std::mutex> *GetLock() { return mainLoopLock; }
|
||||
|
||||
void setWaitScene();
|
||||
bool sceneChangedDuringWait();
|
||||
|
||||
Reference in New Issue
Block a user