Ejemplo n.º 1
0
 def _get_connections(self):
     currentConnections = []
     self.port_lock.acquire()
     for id_, port in self.outConnections.items():
         currentConnections.append(ExtendedCF.UsesConnection(id_, port))
     self.port_lock.release()
     return currentConnections
Ejemplo n.º 2
0
 def _get_connections(self):
     self._connectionMutex.acquire()
     try:
         return [
             ExtendedCF.UsesConnection(k, v.port)
             for k, v in self._connections.iteritems()
         ]
     finally:
         self._connectionMutex.release()
 def _get_connections(self):
     self.port_lock.acquire()
     try:
         return [
             ExtendedCF.UsesConnection(connId, port)
             for connId, port in self.outConnections.items()
         ]
     finally:
         self.port_lock.release()
Ejemplo n.º 4
0
 def _get_connections(self):
     return [
         ExtendedCF.UsesConnection(k, v['port'])
         for k, v in self._connections.iteritems()
     ]
Ejemplo n.º 5
0
 def _get_connections(self):
     return [
         ExtendedCF.UsesConnection(k, v)
         for k, v in self.outPorts.iteritems()
     ]