Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
PythonThread Class Reference

This class is exposed to Python to allow creation of a Panda thread from the Python level. More...

Inheritance diagram for PythonThread:
Thread TypedReferenceCount Namable TypedObject ReferenceCount

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

PythonThread ( PyObject  function,
PyObject  args,
string  name,
string  sync_name 
)

Member Function Documentation

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.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties