direct.showbase.TaskThreaded

from direct.showbase.TaskThreaded import TaskThread, TaskThreaded

Contains the TaskThreaded and TaskThread classes.

Inheritance diagram

Inheritance diagram of direct.showbase.TaskThreaded

class TaskThread[source]

Bases: object

done(self)[source]
finished(self)[source]
isFinished(self)[source]
run(self)[source]
setUp(self)[source]
tearDown(self)[source]
timeLeft(self)[source]
class TaskThreaded(name, threaded=True, timeslice=None, callback=None)[source]

Bases: object

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)[source]
destroy(self)[source]
finished(self)[source]
getTimeslice(self)[source]
notify = <direct.directnotify.Notifier.Notifier object>
scheduleCallback(self, callback)[source]
scheduleThread(self, thread)[source]
setTimeslice(self, timeslice)[source]
taskTimeLeft(self)[source]

returns True if there is time left for the current task callback to run without going over the allotted timeslice