MCPcopy Create free account
hub / github.com/cinder/Cinder / JvmHelper_ThreadExit

Function JvmHelper_ThreadExit

src/cinder/android/JniHelper.cpp:119–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117static JavaVM* sJavaVm = nullptr;
118
119static void JvmHelper_ThreadExit( void* block )
120{
121//dbg_app_log("JVMAttach_ThreadExit");
122
123 if( nullptr != block ) {
124 JniThreadVars* threadVars = reinterpret_cast<JniThreadVars*>( block );
125 delete threadVars;
126 dbg_app_log("JVMAttach_ThreadExit -> deleted JNI threadVars (via pthread_key_create destructor)");
127
128 if( nullptr != sJavaVm ) {
129 sJavaVm->DetachCurrentThread();
130 dbg_app_log("JVMAttach_ThreadExit -> JavaVM::DetachCurrentThread (via pthread_key_create destructor)");
131 }
132 pthread_setspecific( sThreadExitKey, nullptr );
133 }
134}
135
136static void JvmHelper_MakeKey()
137{

Callers

nothing calls this directly

Calls 1

dbg_app_logFunction · 0.85

Tested by

no test coverage detected