From 076d886398747631f8bb7cc116ed19d84221adc4 Mon Sep 17 00:00:00 2001 From: normal Date: Sat, 3 Feb 2018 19:59:05 +0000 Subject: thread.c (rb_thread_terminate_all): eliminate double2timeval call No point for a fixed 1s value, and I plan on eliminating double timeouts from internal API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 23957eba09..fe5386a95d 100644 --- a/thread.c +++ b/thread.c @@ -506,7 +506,7 @@ rb_thread_terminate_all(void) terminate_all(vm, th); while (vm_living_thread_num(vm) > 1) { - struct timeval tv = double2timeval(1.0); + struct timeval tv = { 1, 0 }; /* * Thread exiting routine in thread_start_func_2 notify * me when the last sub-thread exit. -- cgit v1.2.3