mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 08:50:57 +01:00
kernel: readable_event: Signal only once.
This commit is contained in:
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() {
|
void ReadableEvent::Signal() {
|
||||||
signaled = true;
|
if (!signaled) {
|
||||||
WakeupAllWaitingThreads();
|
signaled = true;
|
||||||
|
WakeupAllWaitingThreads();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReadableEvent::Clear() {
|
void ReadableEvent::Clear() {
|
||||||
|
|
Loading…
Reference in a new issue