This class is exposed to Python to allow creation of a Panda thread from the Python level. More...
Public Member Functions | |
PythonThread (PyObject function, PyObject args, string name, string sync_name) | |
PyObject | join () |
Blocks the calling process until the thread terminates. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
This class is exposed to Python to allow creation of a Panda thread from the Python level.
It will spawn a thread that executes an arbitrary Python functor.
PythonThread | ( | PyObject | function, |
PyObject | args, | ||
string | name, | ||
string | sync_name | ||
) |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from Thread.
PyObject join | ( | ) |
Blocks the calling process until the thread terminates.
If the thread has already terminated, this returns immediately.
The PythonThread flavor of this function returns the same value returned by the thread function.
Reimplemented from Thread.