mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
ThreadManager: Protect against teardown hang/leak.
Make sure we lock during canceled checks/updates, and also try to free tasks queued on threads that didn't end up running.
This commit is contained in:
1 parent
de9a4dcede
commit
12b790bb81
2 files changed
+54
-8
No files matched your search
@@ -60,6 +60,8 @@ public:
|
||||
int GetNumLooperThreads() const;
|
||||
|
||||
private:
|
||||
bool TeardownTask(Task *task, bool enqueue);
|
||||
|
||||
// This is always pointing to a context, initialized in the constructor.
|
||||
GlobalThreadContext *global_;
|
||||
|
||||
|
||||
Reference in new issue
Block a user