mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 02:10:34 +00: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:
parent
ac898c54f3
commit
93bf866125
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user