diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-15 06:10:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-15 06:10:01 +0000 |
commit | 2ca5e8eeababba0469aef7421572e29d81b9bd34 (patch) | |
tree | d6ec6131b3db9f44a6fb9ee8346b39f5d4421617 /thread.c | |
parent | 771f692792227e77dd9e9df74a2fda7bb6f33622 (diff) | |
download | ruby-2ca5e8eeababba0469aef7421572e29d81b9bd34.tar.gz |
* parse.y (yycompile0): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -883,7 +883,7 @@ double2timeval(double d) } static void -sleep_forever(rb_thread_t *th, int deadlockable,int spurious_check) +sleep_forever(rb_thread_t *th, int deadlockable, int spurious_check) { enum rb_thread_status prev_status = th->status; enum rb_thread_status status = deadlockable ? THREAD_STOPPED_FOREVER : THREAD_STOPPED; @@ -900,7 +900,7 @@ sleep_forever(rb_thread_t *th, int deadlockable,int spurious_check) th->vm->sleeper--; } RUBY_VM_CHECK_INTS_BLOCKING(th); - if(!spurious_check) + if (!spurious_check) break; } th->status = prev_status; @@ -923,7 +923,7 @@ getclockofday(struct timeval *tp) } static void -sleep_timeval(rb_thread_t *th, struct timeval tv,int spurious_check) +sleep_timeval(rb_thread_t *th, struct timeval tv, int spurious_check) { struct timeval to, tvn; enum rb_thread_status prev_status = th->status; @@ -951,7 +951,7 @@ sleep_timeval(rb_thread_t *th, struct timeval tv,int spurious_check) --tv.tv_sec; tv.tv_usec += 1000000; } - if(!spurious_check) + if (!spurious_check) break; } th->status = prev_status; @@ -989,9 +989,9 @@ timeofday(void) } static void -sleep_wait_for_interrupt(rb_thread_t *th, double sleepsec,int spurious_check) +sleep_wait_for_interrupt(rb_thread_t *th, double sleepsec, int spurious_check) { - sleep_timeval(th, double2timeval(sleepsec),spurious_check); + sleep_timeval(th, double2timeval(sleepsec), spurious_check); } static void |