diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-31 06:31:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-31 06:31:06 +0000 |
commit | 919a9d9e02e5f1dcb10ae10e9deb68aba11a4660 (patch) | |
tree | b50ff1f2a1968e0151f0f7b42bd0b69b7c0438ef | |
parent | 9b69e9fafc329aaa540d5adeb55124f020abfe3c (diff) |
use TRUE/FALSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | thread.c | 6 | ||||
-rw-r--r-- | thread_sync.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -845,7 +845,7 @@ thread_join_sleep(VALUE arg) while (target_th->status != THREAD_KILLED) { if (forever) { - sleep_forever(th, 1, 0); + sleep_forever(th, TRUE, FALSE); } else { double now = timeofday(); @@ -1136,14 +1136,14 @@ void rb_thread_sleep_forever(void) { thread_debug("rb_thread_sleep_forever\n"); - sleep_forever(GET_THREAD(), 0, 1); + sleep_forever(GET_THREAD(), FALSE, TRUE); } void rb_thread_sleep_deadly(void) { thread_debug("rb_thread_sleep_deadly\n"); - sleep_forever(GET_THREAD(), 1, 1); + sleep_forever(GET_THREAD(), TRUE, TRUE); } static double diff --git a/thread_sync.c b/thread_sync.c index 8869af2deb..9fbe3b0383 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -420,7 +420,7 @@ rb_mutex_abandon_all(rb_mutex_t *mutexes) static VALUE rb_mutex_sleep_forever(VALUE time) { - sleep_forever(GET_THREAD(), 1, 0); /* permit spurious check */ + sleep_forever(GET_THREAD(), TRUE, FALSE); /* permit spurious check */ return Qnil; } |