Simplified mutex creation

This commit is contained in:
Kyle Banker 2009-10-19 11:46:59 -04:00
parent 2a0552d6dc
commit f642b0b3bd
1 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,7 @@
require 'socket'
require 'digest/md5'
require 'mutex_m'
require 'thread'
require 'mongo/collection'
require 'mongo/message'
require 'mongo/query'
@ -137,8 +137,7 @@ module Mongo
@pk_factory = options[:pk]
@slave_ok = options[:slave_ok] && @nodes.length == 1 # only OK if one node
@auto_reconnect = options[:auto_reconnect]
@semaphore = Object.new
@semaphore.extend Mutex_m
@semaphore = Mutex.new
@socket = nil
@logger = options[:logger]
connect_to_master