mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Misc sanity checks
This commit is contained in:
1 parent
aea6df0ca4
commit
70f1edb28f
8 files changed
+37
-18
No files matched your search
@@ -30,9 +30,9 @@ public:
|
||||
return true;
|
||||
|
||||
uint32_t us = budget_s > 0 ? (uint32_t)(budget_s * 1000000.0) : 0;
|
||||
if (us == 0)
|
||||
if (us == 0) {
|
||||
return false;
|
||||
|
||||
}
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
return cond_.wait_for(lock, std::chrono::microseconds(us), [&] { return triggered_.load(); });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user