Package org.python.modules.thread
Class thread
java.lang.Object
org.python.modules.thread.thread
- All Implemented Interfaces:
ClassDictInit
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionThread_newFunctionThread(PyObject func, PyTuple args) Initializes aFunctionThread, using the configured stack_size and registering the thread in the @linkgroupof threads spawned by the thread module.static PyLockstatic voidclassDictInit(PyObject dict) static voidexit()static voidstatic longstatic voidInterrupt all running threads spawned by the thread module.static longstack_size(PyObject[] args) static voidstart_new_thread(PyObject func, PyTuple args)
-
Field Details
-
__doc__
-
error
-
-
Constructor Details
-
thread
public thread()
-
-
Method Details
-
classDictInit
-
start_new_thread
-
_newFunctionThread
Initializes aFunctionThread, using the configured stack_size and registering the thread in the @linkgroupof threads spawned by the thread module. Also used from the threading.py module. -
interruptAllThreads
public static void interruptAllThreads()Interrupt all running threads spawned by the thread module. This works in conjunction with:PyTableCode.call(org.python.core.ThreadState, org.python.core.PyFrame, org.python.core.PyObject), which checks for the interrupted status of the current thread, andFunctionThread.run(), which exits the current thread. -
allocate_lock
-
exit
public static void exit() -
exit_thread
public static void exit_thread() -
get_ident
public static long get_ident() -
stack_size
-