vibe.d beta banner
get vibe.d
0.10.0

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

Struct ManualEvent

A manually triggered multi threaded cross-task event.

struct ManualEvent ;

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 at least one waiting task
opCast ()
wait () Acquires ownership and waits until the signal is emitted.
wait (emit_count) 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.

Enums

NameDescription
EmitMode

Note

the ownership can be shared between multiple fibers and threads.

Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2019 Sönke Ludwig

License

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