< prev index next >

src/java.base/unix/native/libnio/ch/NativeThread.c

Print this page

        

*** 75,95 **** if (sigaction(INTERRUPT_SIGNAL, &sa, &osa) < 0) JNU_ThrowIOExceptionWithLastError(env, "sigaction"); } JNIEXPORT jlong JNICALL ! Java_sun_nio_ch_NativeThread_current(JNIEnv *env, jclass cl) { #ifdef __solaris__ return (jlong)thr_self(); #else return (jlong)pthread_self(); #endif } JNIEXPORT void JNICALL ! Java_sun_nio_ch_NativeThread_signal(JNIEnv *env, jclass cl, jlong thread) { int ret; #ifdef __solaris__ ret = thr_kill((thread_t)thread, INTERRUPT_SIGNAL); #else --- 75,95 ---- if (sigaction(INTERRUPT_SIGNAL, &sa, &osa) < 0) JNU_ThrowIOExceptionWithLastError(env, "sigaction"); } JNIEXPORT jlong JNICALL ! Java_sun_nio_ch_NativeThread_current0(JNIEnv *env, jclass cl) { #ifdef __solaris__ return (jlong)thr_self(); #else return (jlong)pthread_self(); #endif } JNIEXPORT void JNICALL ! Java_sun_nio_ch_NativeThread_signal0(JNIEnv *env, jclass cl, jlong thread) { int ret; #ifdef __solaris__ ret = thr_kill((thread_t)thread, INTERRUPT_SIGNAL); #else
< prev index next >