|
Panda3D
|
Public Member Functions | |
| __init__ (self, timeslice=None) | |
| __repr__ (self) | |
| add (self, job) | |
| destroy (self) | |
| finish (self, job) | |
| getTimeslice (self) | |
| remove (self, job) | |
| setTimeslice (self, timeslice) | |
Static Public Member Functions | |
| getDefaultTimeslice () | |
Static Public Attributes | |
| notify = directNotify.newCategory("JobManager") | |
| str | TaskName = 'jobManager' |
Protected Member Functions | |
| _getSortedPriorities (self) | |
| _process (self, task=None) | |
Protected Attributes | |
| int | _highestPriority = Job.Priorities.Normal |
| dict | _jobId2overflowTime = {} |
| dict | _jobId2pri = {} |
| dict | _jobId2timeslices = {} |
| _jobIdGenerator = None | |
| dict | _pri2jobId2job = {} |
| dict | _pri2jobIds = {} |
| _process = 1: | |
| _timeslice = timeslice | |
| _useOverflowTime = None | |
Similar to the taskMgr but designed for tasks that are CPU-intensive and/or not time-critical. Jobs run in a fixed timeslice that the JobManager is allotted each frame.
| __init__ | ( | self, | |
| timeslice = None ) |
| __repr__ | ( | self | ) |
|
protected |
|
protected |
| add | ( | self, | |
| job ) |
| destroy | ( | self | ) |
| finish | ( | self, | |
| job ) |
|
static |
| getTimeslice | ( | self | ) |
| remove | ( | self, | |
| job ) |
| setTimeslice | ( | self, | |
| timeslice ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |