def queue_loop():
 global __signaled_, __signaled_first_
 while __loop_:
  __semaphore_.acquire()
  __signaled_first_ = 0
  __signaled_ = 0
  queue_dispatcher()

def queue_loop ( ) : global __signaled_ , __signaled_first_ while __loop_ : __semaphore_ . acquire ( ) __signaled_first_ = 0 __signaled_ = 0 queue_dispatcher ( )
an infinite loop running the codeintel in a background thread .