mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +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
+3
-2
@@ -1736,6 +1736,9 @@ void Config::RemoveRecent(const std::string &file) {
|
||||
void Config::CleanRecent() {
|
||||
private_->SetRecentIsosThread([this] {
|
||||
SetCurrentThreadName("RecentISOs");
|
||||
|
||||
AndroidJNIThreadContext jniContext; // destructor detaches
|
||||
|
||||
double startTime = time_now_d();
|
||||
|
||||
std::lock_guard<std::mutex> guard(private_->recentIsosLock);
|
||||
@@ -1766,8 +1769,6 @@ void Config::CleanRecent() {
|
||||
|
||||
INFO_LOG(SYSTEM, "CleanRecent took %0.2f", time_now_d() - startTime);
|
||||
recentIsos = cleanedRecent;
|
||||
|
||||
DetachThreadFromJNI();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user