类 Rinda::WaitTemplateEntry
文档?
属性
found[R]
公共类方法
new(place, ary, expires=nil) 点击切换源代码
调用超类方法
Rinda::TupleEntry::new
# File lib/rinda/tuplespace.rb, line 186 def initialize(place, ary, expires=nil) super(ary, expires) @place = place @cond = place.new_cond @found = nil end
公共实例方法
cancel() 点击切换源代码
调用超类方法
Rinda::TupleEntry#cancel
# File lib/rinda/tuplespace.rb, line 193 def cancel super signal end
read(tuple) 点击切换源代码
# File lib/rinda/tuplespace.rb, line 202 def read(tuple) @found = tuple signal end
signal() 点击切换源代码
# File lib/rinda/tuplespace.rb, line 207 def signal @place.synchronize do @cond.signal end end
wait() 点击切换源代码
# File lib/rinda/tuplespace.rb, line 198 def wait @cond.wait end