summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-03 19:59:05 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-03 19:59:05 +0000
commit076d886398747631f8bb7cc116ed19d84221adc4 (patch)
tree2a1e78e1e8372e2543fb67e6d30e99d0bb30895e /thread.c
parent7036c4062ec7980ea1966e8b96c73be0bd83bd0c (diff)
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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
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.