mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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
@@ -67,6 +67,15 @@ static EXCEPTION_DISPOSITION NTAPI ignore_handler(EXCEPTION_RECORD *rec,
|
||||
}
|
||||
#endif
|
||||
|
||||
void AttachThreadToJNI() {
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
Android_AttachThreadToJNI();
|
||||
#else
|
||||
// Do nothing
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void DetachThreadFromJNI() {
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
Android_DetachThreadFromJNI();
|
||||
|
||||
Reference in new issue
Block a user