示例#1
0
 def from_main_thread_nonblocking(self):
     try:
         msg = self.queue.get(False)
         logging.info("got msg from main: %s" % msg)
         # schedule the reply
         scheduler.Task("SEND REPLY", 0, self.send_reply, (msg, )).run()
     except Empty:
         pass
示例#2
0
    def from_main_thread_nonblocking(self):
#        logging.info("Checking queue")
        try:
            msg = self.queue.get(False) #doesn't block
            logging.info("got msg from main: %s" % msg)
            # schedule the reply
            scheduler.Task("HANDLE REPLY", 0, self.handle_queue_msg, (msg,)).run()
        except Empty:
            pass