mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
UWP: Fix (or patch up...) a race condition in StorageFileLoader. Might help #10882, fixes some other freezes.
Not convinced it's 100% correct but it appears to work, heh. Can't be bothered to investigate too deeply.
This commit is contained in:
1 parent
ac898c54f3
commit
93bf866125
1 file changed
+2
@@ -19,10 +19,12 @@ StorageFileLoader::StorageFileLoader(Windows::Storage::StorageFile ^file) {
|
||||
}
|
||||
|
||||
StorageFileLoader::~StorageFileLoader() {
|
||||
initMutex.lock();
|
||||
active_ = false;
|
||||
operationRequested_ = false;
|
||||
cond_.notify_all();
|
||||
thread_->join();
|
||||
initMutex.unlock();
|
||||
}
|
||||
|
||||
void StorageFileLoader::threadfunc() {
|
||||
|
||||
Reference in new issue
Block a user