15 #ifndef PYTHONTHREAD_H
16 #define PYTHONTHREAD_H
18 #include "pandabase.h"
29 class EXPCL_PANDA_PIPELINE PythonThread :
public Thread {
31 PythonThread(PyObject *
function, PyObject *args,
32 const string &name,
const string &sync_name);
33 virtual ~PythonThread();
35 BLOCKING PyObject *
join();
38 virtual void thread_main();
49 static void init_type() {
51 register_type(_type_handle,
"PythonThread",
52 Thread::get_class_type());
55 return get_class_type();
57 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
void join()
Blocks the calling process until the thread terminates.
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.