ruby-changes:55824
From: git <ko1@a...>
Date: Sat, 25 May 2019 09:51:40 +0900 (JST)
Subject: [ruby-changes:55824] git: 809ac9f2ea (trunk): * expand tabs.
https://git.ruby-lang.org/ruby.git/commit/?id=809ac9f2ea From 809ac9f2eaa0b9cf818f571f6febcee6785cc8e2 Mon Sep 17 00:00:00 2001 From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Sat, 25 May 2019 09:51:27 +0900 Subject: * expand tabs. diff --git a/thread_pthread.c b/thread_pthread.c index 2e5be35..515f13b 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -2197,23 +2197,23 @@ timer_pthread_fn(void *p) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L2197 ccp = consume_communication_pipe(pfd.fd); if (system_working > 0) { - if (ATOMIC_CAS(timer_pthread.armed, 1, 1)) { - pthread_kill(main_thread_id, SIGVTALRM); - - if (rb_signal_buff_size() || !ubf_threads_empty()) { - timeout = TIME_QUANTUM_MSEC; - } - else { - ATOMIC_SET(timer_pthread.armed, 0); - timeout = -1; - } - } - else if (ccp) { - pthread_kill(main_thread_id, SIGVTALRM); - ATOMIC_SET(timer_pthread.armed, 0); - timeout = -1; - } - } + if (ATOMIC_CAS(timer_pthread.armed, 1, 1)) { + pthread_kill(main_thread_id, SIGVTALRM); + + if (rb_signal_buff_size() || !ubf_threads_empty()) { + timeout = TIME_QUANTUM_MSEC; + } + else { + ATOMIC_SET(timer_pthread.armed, 0); + timeout = -1; + } + } + else if (ccp) { + pthread_kill(main_thread_id, SIGVTALRM); + ATOMIC_SET(timer_pthread.armed, 0); + timeout = -1; + } + } } return 0; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/