Package mrv :: Module thread
[hide private]
[frames] | no frames]

Module thread

source code

Module with threading utilities
Classes [hide private]
    Classes
  TerminatableThread
A simple thread able to terminate itself on behalf of the user.
  WorkerThread
This base allows to call functions on class instances natively and retrieve their results asynchronously using a queue.
Functions [hide private]
    Decorators
 
do_terminate_threads(whitelist=[])
Simple function which terminates all of our threads :param whitelist: If whitelist is given, only the given threads will be terminated
source code
 
terminate_threads(func)
Kills all worker threads the method has created by sending the quit signal.
source code
Variables [hide private]
  __package__ = 'mrv'
Function Details [hide private]

terminate_threads(func)

source code 
Kills all worker threads the method has created by sending the quit signal. This takes over in case of an error in the main function