def __init__(self): self.__lock = pm.Mutex('PythonLock') self.__cvar = pm.ConditionVar(self.__lock) self.__locked = False