aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index a4e7f25d75..e3ff6ee714 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -816,9 +816,16 @@ native_stop_timer_thread(void)
native_cond_signal(&timer_thread_cond);
}
native_mutex_unlock(&timer_thread_lock);
+ native_thread_join(timer_thread_id);
return stopped;
}
+static void
+native_reset_timer_thread(void)
+{
+ timer_thread_id = 0;
+}
+
#ifdef HAVE_SIGALTSTACK
int
ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr)