Esempio n. 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
Esempio n. 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
Esempio n. 3
0
 def abort(self):
     if self._threadid is None:
         return
     try:
         thread2._async_raise(self._threadid, KeyboardInterrupt)
         self.wait()
     except ValueError:
         pass
Esempio n. 4
0
 def abort(self):
     if self._threadid is None:
         return
     try:
         thread2._async_raise(self._threadid, KeyboardInterrupt)
         self.wait()
     except ValueError:
         pass
Esempio n. 5
0
 def cancel(self):
     tid = self.threadid
     if tid is None:
         return
     try:
         thread2._async_raise(tid, KeyboardInterrupt)
     except ValueError:
         pass