summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-05-25 09:51:27 +0900
committergit <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-05-25 09:51:27 +0900
commit809ac9f2eaa0b9cf818f571f6febcee6785cc8e2 (patch)
tree5dfc9760c30c3bf401061562d7c10c76fed07331
parent1ef39d8d099f145222b9352423af16a2bab6e05b (diff)
downloadruby-809ac9f2eaa0b9cf818f571f6febcee6785cc8e2.tar.gz
* expand tabs.
-rw-r--r--thread_pthread.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 2e5be35c11..515f13b1a5 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -2197,23 +2197,23 @@ timer_pthread_fn(void *p)
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;