From 7fb1ffe712d10399360b429a839fe2c6ba46dd19 Mon Sep 17 00:00:00 2001 From: Levi Burner Date: Wed, 3 Aug 2022 15:59:14 -0400 Subject: [PATCH] Invert condition variable predicate --- simulate/simulate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index af8b7304..71dc0dff 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -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; }); } }