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

ruby-changes:51514

From: normal <ko1@a...>
Date: Sat, 23 Jun 2018 12:47:59 +0900 (JST)
Subject: [ruby-changes:51514] normal:r63724 (trunk): thread_pthread.c (native_sleep): do not clear unblock.arg

normal	2018-06-23 12:47:54 +0900 (Sat, 23 Jun 2018)

  New Revision: 63724

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

  Log:
    thread_pthread.c (native_sleep): do not clear unblock.arg
    
    It is unnecessary to clear unblock.arg once unblock.func is
    cleared, and unblock_function_clear in thread.c doesn't
    touch it, either.

  Modified files:
    trunk/thread_pthread.c
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 63723)
+++ thread_pthread.c	(revision 63724)
@@ -1069,7 +1069,6 @@ native_sleep(rb_thread_t *th, struct tim https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1069
 		native_cond_timedwait(cond, lock, &timeout);
 	}
 	th->unblock.func = 0;
-	th->unblock.arg = 0;
 
 	rb_native_mutex_unlock(lock);
     }

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

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