[前][次][番号順一覧][スレッド一覧]

ruby-changes:45404

From: ko1 <ko1@a...>
Date: Tue, 31 Jan 2017 15:31:11 +0900 (JST)
Subject: [ruby-changes:45404] ko1:r57477 (trunk): use TRUE/FALSE.

ko1	2017-01-31 15:31:06 +0900 (Tue, 31 Jan 2017)

  New Revision: 57477

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57477

  Log:
    use TRUE/FALSE.

  Modified files:
    trunk/thread.c
    trunk/thread_sync.c
Index: thread.c
===================================================================
--- thread.c	(revision 57476)
+++ thread.c	(revision 57477)
@@ -845,7 +845,7 @@ thread_join_sleep(VALUE arg) https://github.com/ruby/ruby/blob/trunk/thread.c#L845
 
     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 https://github.com/ruby/ruby/blob/trunk/thread.c#L1136
 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
Index: thread_sync.c
===================================================================
--- thread_sync.c	(revision 57476)
+++ thread_sync.c	(revision 57477)
@@ -420,7 +420,7 @@ rb_mutex_abandon_all(rb_mutex_t *mutexes https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L420
 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;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]