Interface Signal

A cross-fiber signal

Inherits from

Note

the ownership can be shared between multiple fibers.

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.
release [inherited] Releases the ownership of the object.
acquire [inherited] Acquires the ownership of an unowned object.
isOwner [inherited] Returns true if the calling fiber owns this object

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

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