From f813d2fb60f13405e9973ac10552d41b2fdac757 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 2 Aug 2018 20:29:48 +0200 Subject: [PATCH] stdpy: fix broken threading.Event --- direct/src/stdpy/threading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/stdpy/threading.py b/direct/src/stdpy/threading.py index 466a198a3a..45409f9e18 100644 --- a/direct/src/stdpy/threading.py +++ b/direct/src/stdpy/threading.py @@ -312,7 +312,7 @@ class Event: object. """ def __init__(self): - self.__lock = core.Lock("Python Event") + self.__lock = core.Mutex("Python Event") self.__cvar = core.ConditionVarFull(self.__lock) self.__flag = False @@ -325,7 +325,7 @@ class Event: self.__lock.acquire() try: self.__flag = True - self.__cvar.signalAll() + self.__cvar.notifyAll() finally: self.__lock.release()