private AttachCurrentThreadAsDaemon ( |
||
penv | ||
args | ||
Результат | JNIResult |
public static JNIEnv GetEnvNoThrow(JavaVM vm) { if (threadJNIEnv == null) { JNIResult result = vm.AttachCurrentThreadAsDaemon(out threadJNIEnv, null); if (result != JNIResult.JNI_OK) { return(null); } } return(threadJNIEnv); }
public static JNIEnv GetEnvForVm(JavaVM vm) { if (threadJNIEnv == null) { JNIResult result = vm.AttachCurrentThreadAsDaemon(out threadJNIEnv, null); if (result != JNIResult.JNI_OK) { throw new JNIException("AttachCurrentThreadAsDaemon failed: " + result); } } return(threadJNIEnv); }
public static JNIEnv GetEnvForVm(JavaVM vm) { if (threadJNIEnv == null) { JNIResult result = vm.AttachCurrentThreadAsDaemon(out threadJNIEnv, null); if (result != JNIResult.JNI_OK) { throw new JNIException("AttachCurrentThreadAsDaemon failed: " + result); } } return threadJNIEnv; }
public static JNIEnv GetEnvNoThrow(JavaVM vm) { if (threadJNIEnv == null) { JNIResult result = vm.AttachCurrentThreadAsDaemon(out threadJNIEnv, null); if (result != JNIResult.JNI_OK) { return null; } } return threadJNIEnv; }