1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mutex_m.rb (sleep): added Mutex_m#sleep to support ConditionVariable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2010-07-23 07:14:54 +00:00
parent 38c4242cf6
commit 8621d0908a
3 changed files with 34 additions and 0 deletions

View file

@ -78,6 +78,10 @@ module Mutex_m
@_mutex.unlock
end
def sleep(timeout = nil)
@_mutex.sleep(timeout)
end
private
def mu_initialize