From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: ** X-Spam-ASN: AS58073 46.182.106.0/24 X-Spam-Status: No, score=2.3 required=3.0 tests=AWL,BAYES_00, RCVD_IN_BRBL_LASTEXT,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_ZBI,RCVD_IN_XBL, SPF_FAIL,SPF_HELO_FAIL shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from 80x24.org (tor-exit.critical.cat [46.182.106.190]) by dcvr.yhbt.net (Postfix) with ESMTP id 2F3311FAE2 for ; Fri, 2 Feb 2018 05:18:45 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH 1/4] thread.c (rb_thread_terminate_all): eliminate double2timeval call Date: Fri, 2 Feb 2018 05:18:34 +0000 Message-Id: <20180202051837.14192-2-e@80x24.org> In-Reply-To: <20180202051837.14192-1-e@80x24.org> References: <20180202051837.14192-1-e@80x24.org> List-Id: No point for a fixed 1s value, and I plan on eliminating double timeouts from internal API. --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- EW