1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use TRUE/FALSE.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-01-31 06:31:06 +00:00
parent 9b69e9fafc
commit 919a9d9e02
2 changed files with 4 additions and 4 deletions

View file

@ -845,7 +845,7 @@ thread_join_sleep(VALUE arg)
while (target_th->status != THREAD_KILLED) { while (target_th->status != THREAD_KILLED) {
if (forever) { if (forever) {
sleep_forever(th, 1, 0); sleep_forever(th, TRUE, FALSE);
} }
else { else {
double now = timeofday(); double now = timeofday();
@ -1136,14 +1136,14 @@ void
rb_thread_sleep_forever(void) rb_thread_sleep_forever(void)
{ {
thread_debug("rb_thread_sleep_forever\n"); thread_debug("rb_thread_sleep_forever\n");
sleep_forever(GET_THREAD(), 0, 1); sleep_forever(GET_THREAD(), FALSE, TRUE);
} }
void void
rb_thread_sleep_deadly(void) rb_thread_sleep_deadly(void)
{ {
thread_debug("rb_thread_sleep_deadly\n"); thread_debug("rb_thread_sleep_deadly\n");
sleep_forever(GET_THREAD(), 1, 1); sleep_forever(GET_THREAD(), TRUE, TRUE);
} }
static double static double

View file

@ -420,7 +420,7 @@ rb_mutex_abandon_all(rb_mutex_t *mutexes)
static VALUE static VALUE
rb_mutex_sleep_forever(VALUE time) 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; return Qnil;
} }