MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / get_thread_local_env_opt

Function get_thread_local_env_opt

rust/src/cache.rs:378–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

376}
377
378pub(crate) fn get_thread_local_env_opt() -> Option<*mut JNIEnv> {
379 JNI_ENV.with(
380 |existing_jni_env_opt| *existing_jni_env_opt.borrow(),
381 )
382}
383
384pub(crate) fn set_thread_local_env(jni_env_opt: Option<*mut JNIEnv>) {
385 debug("Called set_thread_local_env");

Callers 4

get_thread_local_envFunction · 0.85
dropMethod · 0.85
create_jvmMethod · 0.85
try_fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected