mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
stdpy: fix broken threading.Event
This commit is contained in:
parent
2b7ef93e2f
commit
f813d2fb60
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user