mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
kernel: readable_event: Signal only once.
This commit is contained in:
parent
b0ab803ce8
commit
ece5287843
|
@ -23,8 +23,10 @@ void ReadableEvent::Acquire(Thread* thread) {
|
|||
}
|
||||
|
||||
void ReadableEvent::Signal() {
|
||||
signaled = true;
|
||||
WakeupAllWaitingThreads();
|
||||
if (!signaled) {
|
||||
signaled = true;
|
||||
WakeupAllWaitingThreads();
|
||||
};
|
||||
}
|
||||
|
||||
void ReadableEvent::Clear() {
|
||||
|
|
Loading…
Reference in a new issue