Interface ManualEvent

A manually triggered cross-task event.

Inherits from

Note

the ownership can be shared between multiple fibers and threads.

Properties

Name Type Description
emitCount 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 Acquires ownership and waits until the signal is emitted if no emit has happened since the given reference emit count.
acquire Acquires the ownership of an unowned object.
amOwner Returns true if the calling fiber owns this object
release Releases the ownership of the object.

Aliases

Name Description
isOwner Compatibility alias, will be deprecated soon.

Authors

Leonid Kramer

Copyright

© 2012 RejectedSoftware e.K.

License

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