類別 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