Invert condition variable predicate

This commit is contained in:
Levi Burner
2022-08-03 15:59:14 -04:00
parent 74539e307e
commit 7fb1ffe712
+1 -1
View File
@@ -1574,7 +1574,7 @@ void Simulate::load(const char* file,
// Wait for the render thread to be done loading
// so that we know the old model and data's memory can
// be free'd by the other thread (sometimes python)
cond_loadrequest.wait(lock, [this]() { return this->loadrequest > 0; });
cond_loadrequest.wait(lock, [this]() { return this->loadrequest == 0; });
}
}