Esempio n. 1
0
 def __init__(self, circuit):
     self.circuit = circuit  # a caproto.VirtualCircuit
     self.log = circuit.log
     self.channels = {}  # map cid to Channel
     self.ioids = {}  # map ioid to Channel
     self.ioid_data = {}  # map ioid to server response
     self.subscriptionids = {}  # map subscriptionid to Channel
     self.connected = True
     self.socket = None
     self.command_queue = curio.Queue()
     self.new_command_condition = curio.Condition()
     self._socket_lock = curio.RLock()
Esempio n. 2
0
 def __init__(self):
     self._lock = curio.RLock()