Merge pull request #418 from aftersomemath:simulate-cond-fix

PiperOrigin-RevId: 465238283
Change-Id: If93ed34ce9bb8a4942c1bc30802ee7f4cace8690
This commit is contained in:
Copybara-Service
2022-08-03 23:42:27 -07:00
+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; });
}
}