Interface ManualEvent
A manually triggered cross-task event.
interface ManualEvent
;
Properties
Name | Type | Description |
---|---|---|
emitCount [get]
|
int | A counter that is increased with every emit() call |
Methods
Name | Description |
---|---|
emit
()
|
Emits the signal, waking up all owners of the signal. |
wait
()
|
Acquires ownership and waits until the signal is emitted. |
wait
(reference_emit_count)
|
Acquires ownership and waits until the emit count differs from the given one. |
wait
(timeout, reference_emit_count)
|
Acquires ownership and waits until the emit count differs from the given one or until a timeout is reached. |
waitUninterruptible
(reference_emit_count)
|
Same as wait , but defers throwing any InterruptException .
|
Note
the ownership can be shared between multiple fibers and threads.