ruby-changes:29925
From: zzak <ko1@a...>
Date: Mon, 15 Jul 2013 10:57:06 +0900 (JST)
Subject: [ruby-changes:29925] zzak:r41977 (trunk): * thread.c (mutex_sleep): [DOC] Awake thread will reacquire lock
zzak 2013-07-15 10:56:52 +0900 (Mon, 15 Jul 2013) New Revision: 41977 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41977 Log: * thread.c (mutex_sleep): [DOC] Awake thread will reacquire lock By Tim Abdulla [Fixes GH-342] https://github.com/ruby/ruby/pull/342 Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41976) +++ ChangeLog (revision 41977) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jul 15 10:56:01 2013 Zachary Scott <e@z...> + + * thread.c (mutex_sleep): [DOC] Awake thread will reacquire lock + By Tim Abdulla [Fixes GH-342] https://github.com/ruby/ruby/pull/342 + Mon Jul 15 10:45:09 2013 Tanaka Akira <akr@f...> * bignum.c (nlz16): Use __builtin_clz if possible. Index: thread.c =================================================================== --- thread.c (revision 41976) +++ thread.c (revision 41977) @@ -4562,6 +4562,9 @@ rb_mutex_sleep(VALUE self, VALUE timeout https://github.com/ruby/ruby/blob/trunk/thread.c#L4562 * non-nil or forever. Raises +ThreadError+ if +mutex+ wasn't locked by * the current thread. * + * When the thread is next woken up, it will attempt to reacquire + * the lock. + * * Note that this method can wakeup without explicit Thread#wakeup call. * For example, receiving signal and so on. */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/