mesosphere: KSync->Signal() -> KSync->NotifyWaiters

This commit is contained in:
Michael Scire 2018-11-05 03:46:22 -08:00
parent 08970a82ea
commit 9b1fb0c6df

View file

@ -14,7 +14,7 @@ class KSynchronizationObject : public KAutoObject {
virtual ~KSynchronizationObject(); virtual ~KSynchronizationObject();
virtual bool IsSignaled() const = 0; virtual bool IsSignaled() const = 0;
void Signal(); // Note: Signal() with !IsSignaled() is no-op void NotifyWaiters(); // Note: NotifyWaiters() with !IsSignaled() is no-op
KLinkedList<KThread *>::const_iterator AddWaiter(KThread &thread); KLinkedList<KThread *>::const_iterator AddWaiter(KThread &thread);
void RemoveWaiter(KLinkedList<KThread *>::const_iterator it); void RemoveWaiter(KLinkedList<KThread *>::const_iterator it);