diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-30 06:22:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-30 06:22:30 +0000 |
commit | 7e24aacf8bd3f6bc45ba7d42263d70dae33d5b24 (patch) | |
tree | 163674f4123bf461a86b4f6fd1de964297057bae /lib/resolv.rb | |
parent | f48dbbf07455ee4362003c8ecc19612a4d6769d4 (diff) | |
download | ruby-7e24aacf8bd3f6bc45ba7d42263d70dae33d5b24.tar.gz |
Use qualified names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r-- | lib/resolv.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index 9a981b99bd..ca4c7581ba 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -180,7 +180,7 @@ class Resolv def initialize(filename = DefaultFileName) @filename = filename - @mutex = Mutex.new + @mutex = Thread::Mutex.new @initialized = nil end @@ -334,7 +334,7 @@ class Resolv # :ndots => 1) def initialize(config_info=nil) - @mutex = Mutex.new + @mutex = Thread::Mutex.new @config = Config.new(config_info) @initialized = nil end @@ -625,7 +625,7 @@ class Resolv end RequestID = {} # :nodoc: - RequestIDMutex = Mutex.new # :nodoc: + RequestIDMutex = Thread::Mutex.new # :nodoc: def self.allocate_request_id(host, port) # :nodoc: id = nil @@ -910,7 +910,7 @@ class Resolv class Config # :nodoc: def initialize(config_info=nil) - @mutex = Mutex.new + @mutex = Thread::Mutex.new @config_info = config_info @initialized = nil @timeouts = nil |