< prev index next >

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

Print this page
*** 70,17 ***
      if (sigaction(INTERRUPT_SIGNAL, &sa, &osa) < 0)
          JNU_ThrowIOExceptionWithLastError(env, "sigaction");
  }
  
  JNIEXPORT jlong JNICALL
! Java_sun_nio_ch_NativeThread_current(JNIEnv *env, jclass cl)
  {
      return (jlong)pthread_self();
  }
  
  JNIEXPORT void JNICALL
! Java_sun_nio_ch_NativeThread_signal(JNIEnv *env, jclass cl, jlong thread)
  {
      int ret;
      ret = pthread_kill((pthread_t)thread, INTERRUPT_SIGNAL);
  #ifdef MACOSX
      if (ret != 0 && ret != ESRCH)
--- 70,17 ---
      if (sigaction(INTERRUPT_SIGNAL, &sa, &osa) < 0)
          JNU_ThrowIOExceptionWithLastError(env, "sigaction");
  }
  
  JNIEXPORT jlong JNICALL
! Java_sun_nio_ch_NativeThread_current0(JNIEnv *env, jclass cl)
  {
      return (jlong)pthread_self();
  }
  
  JNIEXPORT void JNICALL
! Java_sun_nio_ch_NativeThread_signal0(JNIEnv *env, jclass cl, jlong thread)
  {
      int ret;
      ret = pthread_kill((pthread_t)thread, INTERRUPT_SIGNAL);
  #ifdef MACOSX
      if (ret != 0 && ret != ESRCH)
< prev index next >