def genData(): # Another genData function is # already queued - don't run. # The TaskThreadVeto error # will stop the TaskThread from # calling configTexture as well. if self.__taskThread is not None and \ self.__taskThread.isQueued(self.__taskName): raise idle.TaskThreadVeto() if refreshData: self.__determineTextureType() self.__prepareTextureData()
def task(): taskCalled[0] = True raise idle.TaskThreadVeto()