def __init__(self, queue, callbackObject): """ Initializes the thread's state Args: queue: The incoming packages queue callbackObject: The callback object that will process all the received packets. """ QueueProcessingThread.__init__(self, "Incoming data processing thread", queue) self.__callbackObject = callbackObject self.__referenceCounter = MultithreadingCounter()
def __init__(self, queue, callbackObject): """ Initializes the thread's state Args: queue: The incoming packages queue callbackObject: The callback object that will process all the received packets. """ QueueProcessingThread.__init__(self, "Incoming data processing thread", queue) self.__callbackObject = callbackObject self.__referenceCounter = MultithreadingCounter()
def __init__(self, queue): QueueProcessingThread.__init__(self, "Outgoing data processing thread", queue)
def __init__(self, queue): QueueProcessingThread.__init__(self, "Outgoing data processing thread", queue)