summaryrefslogtreecommitdiff
path: root/lib/monitor.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-04 04:25:10 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-04 04:25:10 +0000
commit7072d8279defb830d8c4551083a23588c50cc6ae (patch)
tree24bf73555d021690da2aa786adcd6ec616ccb10b /lib/monitor.rb
parent541df88924aae308222d6af75afac754fdf57487 (diff)
* lib/monitor.rb: use Object#__send__ instead of Object#send.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/monitor.rb')
-rw-r--r--lib/monitor.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/monitor.rb b/lib/monitor.rb
index cca7fcb..5d5c623 100644
--- a/lib/monitor.rb
+++ b/lib/monitor.rb
@@ -87,11 +87,11 @@ module MonitorMixin
class Timeout < Exception; end
def wait(timeout = nil)
- @monitor.send(:mon_check_owner)
+ @monitor.__send__(:mon_check_owner)
timer = create_timer(timeout)
Thread.critical = true
- count = @monitor.send(:mon_exit_for_cond)
+ count = @monitor.__send__(:mon_exit_for_cond)
@waiters.push(Thread.current)
begin
@@ -107,7 +107,7 @@ module MonitorMixin
if @waiters.include?(Thread.current) # interrupted?
@waiters.delete(Thread.current)
end
- @monitor.send(:mon_enter_for_cond, count)
+ @monitor.__send__(:mon_enter_for_cond, count)
Thread.critical = false
end
end
@@ -125,7 +125,7 @@ module MonitorMixin
end
def signal
- @monitor.send(:mon_check_owner)
+ @monitor.__send__(:mon_check_owner)
Thread.critical = true
t = @waiters.shift
t.wakeup if t
@@ -134,7 +134,7 @@ module MonitorMixin
end
def broadcast
- @monitor.send(:mon_check_owner)
+ @monitor.__send__(:mon_check_owner)
Thread.critical = true
for t in @waiters
t.wakeup
@@ -172,7 +172,7 @@ module MonitorMixin
def self.extend_object(obj)
super(obj)
- obj.send(:mon_initialize)
+ obj.__send__(:mon_initialize)
end
#