Merge pull request #12371 from unknownbrackets/thread-detach

Avoid thread.detach(), join when needed instead
This commit is contained in:
Henrik Rydgård 2019-10-07 20:27:42 +02:00 committed by GitHub
commit 13f87301cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 159 additions and 59 deletions

View file

@ -268,6 +268,7 @@ PSP_LoadingLock::~PSP_LoadingLock() {
void CPU_Shutdown() {
// Since we load on a background thread, wait for startup to complete.
PSP_LoadingLock lock;
PSPLoaders_Shutdown();
if (g_Config.bAutoSaveSymbolMap) {
host->SaveSymbolMap();