Merge pull request #418 from aftersomemath:simulate-cond-fix
PiperOrigin-RevId: 465238283 Change-Id: If93ed34ce9bb8a4942c1bc30802ee7f4cace8690
This commit is contained in:
@@ -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; });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user