moved readerPollTask to earlier priority

This commit is contained in:
Darren Ranalli 2002-07-17 17:37:32 +00:00
parent 476fb91e31
commit cbefb7dd2c

View File

@ -17,6 +17,8 @@ import DirectObject
class ClientRepository(DirectObject.DirectObject): class ClientRepository(DirectObject.DirectObject):
notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository") notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository")
TASK_PRIORITY = -30
def __init__(self, dcFileName): def __init__(self, dcFileName):
self.number2cdc={} self.number2cdc={}
self.name2cdc={} self.name2cdc={}
@ -71,7 +73,7 @@ class ClientRepository(DirectObject.DirectObject):
task = Task.Task(self.rawReaderPollUntilEmpty) task = Task.Task(self.rawReaderPollUntilEmpty)
# Start with empty string # Start with empty string
task.currentRawString = "" task.currentRawString = ""
taskMgr.add(task, "rawReaderPollTask") taskMgr.add(task, "rawReaderPollTask", priority=self.TASK_PRIORITY)
return None return None
def stopRawReaderPollTask(self): def stopRawReaderPollTask(self):
@ -107,7 +109,8 @@ class ClientRepository(DirectObject.DirectObject):
# Stop any tasks we are running now # Stop any tasks we are running now
self.stopRawReaderPollTask() self.stopRawReaderPollTask()
self.stopReaderPollTask() self.stopReaderPollTask()
taskMgr.add(self.readerPollUntilEmpty, "readerPollTask") taskMgr.add(self.readerPollUntilEmpty, "readerPollTask",
priority=self.TASK_PRIORITY)
return None return None
def stopReaderPollTask(self): def stopReaderPollTask(self):