Support for the Ruby 2.4 series has ended. See here for reference.
Object
# File drb/extservm.rb, line 18 def self.command @@command end
# File drb/extservm.rb, line 22 def self.command=(cmd) @@command = cmd end
# File drb/extservm.rb, line 26 def initialize super() @cond = new_cond @servers = {} @waiting = [] @queue = Thread::Queue.new @thread = invoke_thread @uri = nil end
# File drb/extservm.rb, line 48 def regist(name, ro) synchronize do @servers[name] = ro @cond.signal end self end
# File drb/extservm.rb, line 37 def service(name) synchronize do while true server = @servers[name] return server if server&.alive? invoke_service(name) @cond.wait end end end
# File drb/extservm.rb, line 56 def unregist(name) synchronize do @servers.delete(name) end end
This page was generated for Ruby 2.4.1
Generated with Ruby-doc Rdoc Generator 0.42.0.