OPSI.Util.Thread module¶
opsi python library - Thread
copyright: | uib GmbH <info@uib.de> |
---|---|
author: | Christian Kampka <c.kampka@uib.de> |
author: | Jan Schneider <j.schneider@uib.de> |
author: | Niko Wenselowski <n.wenselowski@uib.de> |
license: | GNU Affero General Public License version 3 |
-
class
OPSI.Util.Thread.
KillableThread
(group=None, target=None, name=None, args=(), kwargs=None, verbose=None)¶ Bases:
threading.Thread
-
raise_exc
(exctype)¶ raises the given exception type in the context of this thread
-
terminate
()¶ raises SystemExit in the context of the given thread, which should cause the thread to exit silently (unless caught)
-
-
class
OPSI.Util.Thread.
ThreadPool
(size=20, autostart=True)¶ Bases:
object
-
addJob
(function, callback=None, *args, **kwargs)¶
-
adjustSize
(size)¶
-
decreaseUsageCount
()¶
-
free
()¶
-
increaseUsageCount
()¶
-
start
()¶
-
stop
()¶
-
-
exception
OPSI.Util.Thread.
ThreadPoolException
¶ Bases:
exceptions.Exception
-
OPSI.Util.Thread.
getGlobalThreadPool
(*args, **kwargs)¶