stdpy: fix broken threading.Event

This commit is contained in:
rdb 2018-08-02 20:29:48 +02:00
parent 2b7ef93e2f
commit f813d2fb60

View File

@ -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()