remotelogin/devices/managers/connections.py
def _get_connection_instance_lock(self, conn_name, instance_name):
        """ creates a thread lock for every tuple conn_name instance_name """
        with self.manager_lock:
            if not (conn_name, instance_name) in self._conn_locks:
                self._conn_locks[(conn_name, instance_name)] = threading.Lock()
            return self._conn_locks[(conn_name, instance_name)]
 creates a thread lock for every tuple conn_name instance_name 
creates a thread lock for every tuple conn_name instance_name
creates a thread lock for every tuple conn_name instance_name
def _get_connection_instance_lock(self, conn_name, instance_name):
        with self.manager_lock:
            if not (conn_name, instance_name) in self._conn_locks:
                self._conn_locks[(conn_name, instance_name)] = threading.Lock()
            return self._conn_locks[(conn_name, instance_name)]
def _get_connection_instance_lock ( self , conn_name , instance_name ) : with self . manager_lock : if not ( conn_name , instance_name ) in self . _conn_locks : self . _conn_locks [ ( conn_name , instance_name ) ] = threading . Lock ( ) return self . _conn_locks [ ( conn_name , instance_name ) ]
creates a thread lock for every tuple conn_name instance_name
creates a thread lock for every tuple conn_name instance_name
""" creates a thread lock for every tuple conn_name instance_name """
self
conn_name
instance_name