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 |
---|---|
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
Sönke Ludwig
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.