taskMgr.getCurrentTask()

This commit is contained in:
David Rose 2010-02-09 20:15:31 +00:00
parent 2494b49728
commit 73943dd77e

View File

@ -163,6 +163,12 @@ class TaskManager:
# Next time around invoke the default handler
signal.signal(signal.SIGINT, self.invokeDefaultHandler)
def getCurrentTask(self):
""" Returns the task currently executing on this thread, or
None if this is being called outside of the task manager. """
return Thread.getCurrentThread().getCurrentTask()
def hasTaskChain(self, chainName):
""" Returns true if a task chain with the indicated name has
already been defined, or false otherwise. Note that