|
Panda3D
|
Public Member Functions | |
| __init__ (self, name, threaded=True, timeslice=None, callback=None) | |
| destroy (self) | |
| finished (self) | |
| getTimeslice (self) | |
| scheduleCallback (self, callback) | |
| scheduleThread (self, thread) | |
| setTimeslice (self, timeslice) | |
| taskTimeLeft (self) | |
Static Public Attributes | |
| notify = directNotify.newCategory("TaskThreaded") | |
Protected Member Functions | |
| _doCallback (self, callback, taskName, task) | |
| _doThreadCallback (self, thread, taskName, task) | |
Protected Attributes | |
| _callback = callback | |
| _doThreadCallback | |
| _taskStartTime = None | |
Static Protected Attributes | |
| _Serial = SerialNumGen() | |
derive from this if you need to do a bunch of CPU-intensive processing and you don't want to hang up the show. Lets you break up the processing over multiple frames
| __init__ | ( | self, | |
| name, | |||
| threaded = True, | |||
| timeslice = None, | |||
| callback = None ) |
|
protected |
|
protected |
| destroy | ( | self | ) |
| finished | ( | self | ) |
| getTimeslice | ( | self | ) |
| scheduleCallback | ( | self, | |
| callback ) |
| scheduleThread | ( | self, | |
| thread ) |
| setTimeslice | ( | self, | |
| timeslice ) |
| taskTimeLeft | ( | self | ) |
returns True if there is time left for the current task callback to run without going over the allotted timeslice
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
static |