示例#1
0
 def abort(self):
     if self.isRunning() and hasattr(self, 'thread_id'):
         self.abortbyuser = True
         try:
             thread2._async_raise(self.thread_id, KeyboardInterrupt)
         except ValueError:
             pass
示例#2
0
 def abort(self):
     if self.isRunning() and hasattr(self, 'thread_id'):
         self.abortbyuser = True
         try:
             thread2._async_raise(self.thread_id, KeyboardInterrupt)
         except ValueError:
             pass
示例#3
0
 def abort(self):
     if self._threadid is None:
         return
     try:
         thread2._async_raise(self._threadid, KeyboardInterrupt)
         self.wait()
     except ValueError:
         pass
示例#4
0
 def abort(self):
     if self._threadid is None:
         return
     try:
         thread2._async_raise(self._threadid, KeyboardInterrupt)
         self.wait()
     except ValueError:
         pass
示例#5
0
 def cancel(self):
     tid = self.threadid
     if tid is None:
         return
     try:
         thread2._async_raise(tid, KeyboardInterrupt)
     except ValueError:
         pass