mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
added debug prints for job add/remove
This commit is contained in:
parent
e0ac96d42a
commit
f7a9220832
@ -49,6 +49,7 @@ class JobManager:
|
|||||||
self._highestPriority = pri
|
self._highestPriority = pri
|
||||||
if len(self._jobId2pri) == 1:
|
if len(self._jobId2pri) == 1:
|
||||||
taskMgr.add(self._process, JobManager.TaskName)
|
taskMgr.add(self._process, JobManager.TaskName)
|
||||||
|
self.notify.debug('added job %s' % job.getJobName())
|
||||||
|
|
||||||
def remove(self, job):
|
def remove(self, job):
|
||||||
assert self.notify.debugCall()
|
assert self.notify.debugCall()
|
||||||
@ -73,6 +74,7 @@ class JobManager:
|
|||||||
else:
|
else:
|
||||||
taskMgr.remove(JobManager.TaskName)
|
taskMgr.remove(JobManager.TaskName)
|
||||||
self._highestPriority = 0
|
self._highestPriority = 0
|
||||||
|
self.notify.debug('removed job %s' % job.getJobName())
|
||||||
|
|
||||||
def finish(self, job):
|
def finish(self, job):
|
||||||
# run this job, right now, until it finishes
|
# run this job, right now, until it finishes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user