mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
Audit our use of condition variables, fix some minor issues
This commit is contained in:
@@ -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