Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • rinda/tuplespace.rb

Rinda::WaitTemplateEntry

Documentation?

Attributes

found[R]

Public Class Methods

new(place, ary, expires=nil) click to toggle source
 
               # File rinda/tuplespace.rb, line 187
def initialize(place, ary, expires=nil)
  super(ary, expires)
  @place = place
  @cond = place.new_cond
  @found = nil
end
            

Public Instance Methods

cancel() click to toggle source
 
               # File rinda/tuplespace.rb, line 194
def cancel
  super
  signal
end
            
read(tuple) click to toggle source
 
               # File rinda/tuplespace.rb, line 203
def read(tuple)
  @found = tuple
  signal
end
            
signal() click to toggle source
 
               # File rinda/tuplespace.rb, line 208
def signal
  @place.synchronize do
    @cond.signal
  end
end
            
wait() click to toggle source
 
               # File rinda/tuplespace.rb, line 199
def wait
  @cond.wait
end