remove old task manager

This commit is contained in:
David Rose 2009-09-25 14:50:14 +00:00
parent aeaf27df80
commit 7de817fb2b
4 changed files with 1241 additions and 3369 deletions

View File

@ -1681,17 +1681,6 @@ class ShowBase(DirectObject.DirectObject):
self.taskMgr.add(self.__audioLoop, 'audioLoop', priority = 60)
self.eventMgr.restart()
if not hasattr(taskMgr, 'mgr'):
# If we're using the old task manager, we need to have an
# explicit task to manage the async load requests. (On
# the new task manager, this is built-in.)
def asyncLoad(task):
task.mgr.poll()
return task.cont
task = Task.Task(asyncLoad)
task.mgr = AsyncTaskManager.getGlobalPtr()
taskMgr.add(task, 'asyncLoad')
def shutdown(self):
self.taskMgr.remove('audioLoop')
self.taskMgr.remove('igLoop')
@ -1702,12 +1691,6 @@ class ShowBase(DirectObject.DirectObject):
self.taskMgr.remove('ivalLoop')
self.eventMgr.shutdown()
if not hasattr(taskMgr, 'mgr'):
# If we're using the old task manager, we need to have an
# explicit task to manage the async load requests. (On
# the new task manager, this is built-in.)
taskMgr.remove('asyncLoad')
def getBackgroundColor(self, win = None):
"""
Returns the current window background color. This assumes

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff