* thread.c (mutex_sleep): [DOC] Awake thread will reacquire lock

By Tim Abdulla [Fixes GH-342] https://github.com/ruby/ruby/pull/342


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-07-15 01:56:52 +00:00
Родитель 150b265502
Коммит 89d8d7694c
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon Jul 15 10:56:01 2013 Zachary Scott <e@zzak.io>
* 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@fsij.org>
* bignum.c (nlz16): Use __builtin_clz if possible.

Просмотреть файл

@ -4562,6 +4562,9 @@ rb_mutex_sleep(VALUE self, VALUE timeout)
* 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.
*/