Top Fields Constructors Methods
org.python.modules.thread

public Class thread

extends Object
implements ClassDictInit
Class Inheritance
All Implemented Interfaces
org.python.core.ClassDictInit
Imports
org.python.core.ClassDictInit, .FunctionThread, .Py, .PyException, .PyInteger, .PyObject, .PyString, .PyType, .PyTuple

Field Summary

Modifier and TypeField and Description
public static PyString
public static PyObject
private static ThreadGroup
private static volatile long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static FunctionThread
_newFunctionThread(PyObject func, PyTuple args)

Initializes a FunctionThread, using the configured stack_size and registering the thread in the group of threads spawned by the thread module.

public static PyLock
public static void
public static void
exit()

public static void
public static long
public static void
interruptAllThreads()

Interrupt all running threads spawned by the thread module.

public static long
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__doc__back to summary
public static PyString __doc__
errorback to summary
public static PyObject error
groupback to summary
private static ThreadGroup group
stack_sizeback to summary
private static volatile long stack_size

Constructor Detail

threadback to summary
public thread()

Method Detail

_newFunctionThreadback to summary
public static FunctionThread _newFunctionThread(PyObject func, PyTuple args)

Initializes a FunctionThread, using the configured stack_size and registering the thread in the group of threads spawned by the thread module. Also used from the threading.py module.

allocate_lockback to summary
public static PyLock allocate_lock()
classDictInitback to summary
public static void classDictInit(PyObject dict)
exitback to summary
public static void exit()
exit_threadback to summary
public static void exit_thread()
get_identback to summary
public static long get_ident()
interruptAllThreadsback to summary
public static void interruptAllThreads()

Interrupt all running threads spawned by the thread module. This works in conjunction with: org.python.core.PyTableCode#call, which checks for the interrupted status of the current thread, and FunctionThread#run(), which exits the current thread.

stack_sizeback to summary
public static long stack_size(PyObject[] args)
start_new_threadback to summary
public static void start_new_thread(PyObject func, PyTuple args)