Ruby 2.4

Rinda::WaitTemplateEntry

class Rinda::WaitTemplateEntry

Parent:Rinda::TemplateEntry

文档?

属性

foundR

公共类方法

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#取消

# 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