diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-15 01:56:52 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-15 01:56:52 +0000 |
commit | 89d8d7694cd235dfd89a821b7c4c9a41567c0d71 (patch) | |
tree | d8a6fe45a04ca311365d67d96ffffef02ddaa3ce /thread.c | |
parent | 150b2655024892d48ca6af5f70731e2ab68a491f (diff) | |
download | ruby-89d8d7694cd235dfd89a821b7c4c9a41567c0d71.tar.gz |
* 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
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. */ |