mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use qualified names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0df79477bd
commit
4b298ad77a
50 changed files with 100 additions and 93 deletions
|
|
@ -23,7 +23,7 @@ class Dhasen
|
|||
include DRbUndumped
|
||||
|
||||
def initialize
|
||||
@mutex = Mutex.new
|
||||
@mutex = Thread::Mutex.new
|
||||
end
|
||||
|
||||
def sparse(str, *arg)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class Logger
|
|||
def initialize(fname)
|
||||
@fname = fname.to_s
|
||||
@fp = File.open(@fname, "a+")
|
||||
@queue = Queue.new
|
||||
@queue = Thread::Queue.new
|
||||
@th = Thread.new { self.flush }
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
require 'thread'
|
||||
require 'drb/drb'
|
||||
|
||||
DRb.start_service(nil, Queue.new)
|
||||
DRb.start_service(nil, Thread::Queue.new)
|
||||
puts DRb.uri
|
||||
DRb.thread.join
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module DRb
|
|||
def initialize(config, drb)
|
||||
@config = config
|
||||
@drb = drb
|
||||
@queue = Queue.new
|
||||
@queue = Thread::Queue.new
|
||||
end
|
||||
|
||||
def do_POST(req, res)
|
||||
|
|
@ -46,7 +46,7 @@ module DRb
|
|||
def initialize(uri, config)
|
||||
@uri = uri
|
||||
@config = config
|
||||
@queue = Queue.new
|
||||
@queue = Thread::Queue.new
|
||||
setup_webrick(uri)
|
||||
end
|
||||
attr_reader :uri
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ class Seq
|
|||
|
||||
def initialize(v, name)
|
||||
@counter = v
|
||||
@mutex = Mutex.new
|
||||
@mutex = Thread::Mutex.new
|
||||
self.drb_name = name
|
||||
end
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ end
|
|||
class Front
|
||||
def initialize
|
||||
seq = Seq.new(0, 'seq')
|
||||
mutex = Mutex.new
|
||||
mutex = Thread::Mutex.new
|
||||
mutex.extend(DRbUndumped)
|
||||
mutex.extend(DRbNamedObject)
|
||||
mutex.drb_name = 'mutex'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue