- Changed method `notify()` to `notifyAll()`

Documentation

- Updated example usage
This commit is contained in:
Tristan B. Velloza Kildaire 2023-02-23 16:01:03 +02:00
parent eeab29d54e
commit 63227703c3
2 changed files with 3 additions and 3 deletions

View File

@ -50,5 +50,5 @@ Now on the main thread we can do the following to wakeup waiting threads:
```d
/* Wake up all sleeping on this event */
event.notify();
event.notifyAll();
```

View File

@ -87,7 +87,7 @@ public class Event
return pipePair;
}
public final void notify()
public final void notifyAll()
{
/* Lock the pipe-pairs */
pipesLock.lock();
@ -168,5 +168,5 @@ unittest
// TODO: Add assert to check
/* Wake up all sleeping on this event */
event.notify();
event.notifyAll();
}