Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Static Public Attributes | List of all members
TaskThreaded Class Reference

Public Member Functions

def __init__
 
def destroy
 
def finished
 
def getTimeslice
 
def scheduleCallback
 
def scheduleThread
 
def setTimeslice
 
def taskTimeLeft
 

Static Public Attributes

tuple notify = directNotify.newCategory("TaskThreaded")
 

Detailed Description

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 

Constructor & Destructor Documentation

def __init__ (   self,
  name,
  threaded = True,
  timeslice = None,
  callback = None 
)

Member Function Documentation

def destroy (   self)
def finished (   self)
def getTimeslice (   self)
def scheduleCallback (   self,
  callback 
)
def scheduleThread (   self,
  thread 
)
def setTimeslice (   self,
  timeslice 
)
def taskTimeLeft (   self)
returns True if there is time left for the current task callback
to run without going over the allotted timeslice

Member Data Documentation

tuple notify = directNotify.newCategory("TaskThreaded")
static