Public Member Functions | Static Public Attributes | List of all members
TaskThreaded Class Reference

Public Member Functions

def __init__ (self, name, threaded=True, timeslice=None, callback=None)
def destroy (self)
def finished (self)
def getTimeslice (self)
def scheduleCallback (self, callback)
def scheduleThread (self, thread)
def setTimeslice (self, timeslice)
def taskTimeLeft (self)

Static Public Attributes

 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

◆ __init__()

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

Member Function Documentation

◆ destroy()

def destroy (   self)

◆ finished()

def finished (   self)

◆ getTimeslice()

def getTimeslice (   self)

◆ scheduleCallback()

def scheduleCallback (   self,

◆ scheduleThread()

def scheduleThread (   self,

◆ setTimeslice()

def setTimeslice (   self,

◆ taskTimeLeft()

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

◆ notify

notify = directNotify.newCategory("TaskThreaded")