aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 68ca08f18f..49686afbed 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -466,18 +466,14 @@ Init_native_thread(void)
static void
native_thread_init(rb_thread_t *th)
{
-#ifdef HAVE_PTHREAD_CONDATTR_INIT
native_cond_initialize(&th->native_thread_data.sleep_cond, RB_CONDATTR_CLOCK_MONOTONIC);
-#endif
ruby_thread_set_native(th);
}
static void
native_thread_destroy(rb_thread_t *th)
{
-#ifdef HAVE_PTHREAD_CONDATTR_INIT
native_cond_destroy(&th->native_thread_data.sleep_cond);
-#endif
}
#ifndef USE_THREAD_CACHE