Example #1
0
 def __init__(self, queue):
     """
     Initializes the protocol factory
     Args:
         queue: the incoming data queue to use by all protocol instances
     """
     self.protocol = _CygnusCloudProtocol
     self.__queue = queue
     self.__connections = GenericThreadSafeList()
Example #2
0
 def __init__(self):
     self.__backgroundProcesses = GenericThreadSafeList()
     self.__thread = BackgroundProcessesPollingThread(
         self.__backgroundProcesses)
     self.__thread.start()