mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Strict mode checking - no way to forget detaching now.
And if we forget to attach, boom. Hopefully I caught all of them.
This commit is contained in:
1 parent
916404f0e4
commit
b56eef487c
17 files changed
+84
-19
No files matched your search
@@ -269,6 +269,8 @@ void CachingFileLoader::StartReadAhead(s64 pos) {
|
||||
aheadThread_ = std::thread([this, pos] {
|
||||
SetCurrentThreadName("FileLoaderReadAhead");
|
||||
|
||||
AndroidJNIThreadContext jniContext;
|
||||
|
||||
std::unique_lock<std::recursive_mutex> guard(blocksMutex_);
|
||||
s64 cacheStartPos = pos >> BLOCK_SHIFT;
|
||||
s64 cacheEndPos = cacheStartPos + BLOCK_READAHEAD - 1;
|
||||
|
||||
Reference in new issue
Block a user