Package pulp :: Package server :: Package tasking :: Package queue :: Module thread :: Class InterruptableThread
[hide private]
[frames] | no frames]

Class InterruptableThread

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        InterruptableThread

A thread class that supports raising exception in the thread from another thread.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_tid(self)
Determine this thread's id.
source code
 
exception_event(self)
Flag that an exception has been delivered to the thread and handled.
source code
 
raise_exception(self, exc_type)
Raise and exception in this thread.
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, run, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_tid(self)

source code 

Determine this thread's id.

Decorators:
  • @property

exception_event(self)

source code 

Flag that an exception has been delivered to the thread and handled. This will unblock the thread trying to deliver the exception.

raise_exception(self, exc_type)

source code 

Raise and exception in this thread.

NOTE this is executed in the context of the calling thread and blocks until the exception has been delivered to this thread and this thread exists.