mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
taskMgr.getCurrentTask()
This commit is contained in:
parent
2494b49728
commit
73943dd77e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user