mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
Audit our use of condition variables, fix some minor issues
This commit is contained in:
1 parent
a93b55c215
commit
ee62ffdb02
4 files changed
+32
-27
No files matched your search
@@ -59,8 +59,8 @@ ThreadManager::~ThreadManager() {
|
||||
|
||||
void ThreadManager::Teardown() {
|
||||
for (TaskThreadContext *&threadCtx : global_->threads_) {
|
||||
threadCtx->cancelled = true;
|
||||
std::unique_lock<std::mutex> lock(threadCtx->mutex);
|
||||
threadCtx->cancelled = true;
|
||||
threadCtx->cond.notify_one();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user