MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / init_thread

Function init_thread

platform/android/thread_jandroid.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47// especially now that we use many more threads.
48
49static void init_thread() {
50 if (env) {
51 // thread never detached! just keep using...
52 return;
53 }
54
55 java_vm->AttachCurrentThread(&env, nullptr);
56}
57
58static void term_thread() {
59 java_vm->DetachCurrentThread();

Callers 2

setup_android_threadFunction · 0.85
get_jni_envFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected