ruby-changes:50061
From: normal <ko1@a...>
Date: Sun, 4 Feb 2018 04:59:11 +0900 (JST)
Subject: [ruby-changes:50061] normal:r62179 (trunk): thread.c (rb_thread_terminate_all): eliminate double2timeval call
normal 2018-02-04 04:59:05 +0900 (Sun, 04 Feb 2018) New Revision: 62179 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62179 Log: 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. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 62178) +++ thread.c (revision 62179) @@ -506,7 +506,7 @@ rb_thread_terminate_all(void) https://github.com/ruby/ruby/blob/trunk/thread.c#L506 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. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/