mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Remove redundant sleep in RamCachingFileLoader
This commit is contained in:
1 parent
130bd7bbb6
commit
d426ccf178
2 files changed
+4
-5
No files matched your search
@@ -104,12 +104,11 @@ void RamCachingFileLoader::ShutdownCache() {
|
||||
|
||||
// We can't delete while the thread is running, so have to wait.
|
||||
// This should only happen from the menu.
|
||||
while (aheadThreadRunning_) {
|
||||
sleep_ms(1, "shutdown-ram-cache-poll");
|
||||
}
|
||||
if (aheadThread_.joinable())
|
||||
aheadThread_.join();
|
||||
|
||||
_dbg_assert_(!aheadThreadRunning_);
|
||||
|
||||
std::lock_guard<std::mutex> guard(blocksMutex_);
|
||||
blocks_.clear();
|
||||
if (cache_ != nullptr) {
|
||||
|
||||
Reference in new issue
Block a user