def lock ( self , block = True ) : self . _locked = True return self . _lock . acquire ( block )
python lock no blocking
Lock connection from being used else where
def lock(self, block=True):
		"""
		Lock connection from being used else where
		"""
		self._locked = True
		return self._lock.acquire(block)