aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 32e54996bf..0b99c007c1 100644
--- a/thread.c
+++ b/thread.c
@@ -2651,15 +2651,14 @@ void
rb_thread_stop_timer_thread(void)
{
if (timer_thread_id && native_stop_timer_thread()) {
- native_thread_join(timer_thread_id);
- timer_thread_id = 0;
+ native_reset_timer_thread();
}
}
void
rb_thread_reset_timer_thread(void)
{
- timer_thread_id = 0;
+ native_reset_timer_thread();
}
void