mirror of https://github.com/deavmi/libsnooze
Event
- Changed method `notify()` to `notifyAll()` Documentation - Updated example usage
This commit is contained in:
parent
eeab29d54e
commit
63227703c3
|
@ -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();
|
||||
```
|
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue