vibe.d beta banner
get vibe.d
0.8.3

Asynchronous I/O that doesn’t get in your way, written in D

Struct LocalManualEvent

A manually triggered single threaded cross-task event.

struct LocalManualEvent ;

Methods

NameDescription
emit Emits the signal, waking up all owners of the signal.
emitCount A counter that is increased with every emit() call
emitSingle Emits the signal, waking up a single owners of the signal.
opCast
wait Acquires ownership and waits until the signal is emitted.
wait Acquires ownership and waits until the emit count differs from the given one or until a timeout is reached.
waitUninterruptible Same as wait, but defers throwing any InterruptException.

Note

the ownership can be shared between multiple fibers of the same thread.

Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.