kernel: readable_event: Signal only once.

merge-requests/60/head
bunnei 2019-11-03 04:25:41 +07:00
parent b0ab803ce8
commit ece5287843
1 changed files with 4 additions and 2 deletions

@ -23,8 +23,10 @@ void ReadableEvent::Acquire(Thread* thread) {
}
void ReadableEvent::Signal() {
signaled = true;
WakeupAllWaitingThreads();
if (!signaled) {
signaled = true;
WakeupAllWaitingThreads();
};
}
void ReadableEvent::Clear() {