Ejemplo n.º 1
0
 def stop(self, join):
     """
     Asks this thread to terminate.
     Args:
         join: When True, the calling thread will wait the incoming data thread
         to terminate. When False, the calling thread will only ask this thread to terminate.
     Returns: 
         Nothing
     """
     self.__referenceCounter.decrement()
     if self.__referenceCounter.read() == 0:
         QueueProcessingThread.stop(self)
         if join:
             self.join()
Ejemplo n.º 2
0
 def stop(self, join):
     """
     Asks this thread to terminate.
     Args:
         join: When True, the calling thread will wait the incoming data thread
         to terminate. When False, the calling thread will only ask this thread to terminate.
     Returns: 
         Nothing
     """
     self.__referenceCounter.decrement()
     if self.__referenceCounter.read() == 0:
         QueueProcessingThread.stop(self)
         if join:
             self.join()