Interface EventedObject
Base interface for all evented objects.
Evented objects are owned by the fiber/task that created them and may only be used inside this specific fiber. By using release
(), a fiber can drop the ownership of an object so that another fiber can gain ownership using acquire
(). This way it becomes possible to share connections and files across fibers.
Methods
Name | Description |
---|---|
release | Releases the ownership of the object. |
acquire | Acquires the ownership of an unowned object. |
isOwner | 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.