Remove workaround to avoid race conditions

This commit is contained in:
WarmUpTill
2023-01-25 20:06:35 +01:00
committed by WarmUpTill
parent 5366a4a6ed
commit 4a3d019f06
6 changed files with 72 additions and 48 deletions

View File

@@ -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();