Class TaskFiber

The base class for a task aka Fiber.

This class represents a single task that is executed concurrently with other tasks. Each task is owned by a single thread.

Inherits from

  • Fiber (base class)

Properties

Name Type Description
messageQueue [get] inout(MessageQueue)
task [get] Task Returns the handle of the current Task running on this fiber.
thread [get] inout(core.thread.Thread) Returns the thread that owns this task.

Methods

Name Description
get Returns a task local variable. Will be deprecated soon.
interrupt Throws an InterruptExeption within the task as soon as it calls a blocking function.
isSet Determines if a certain task local variable is set. Will be deprecated soon.
join Blocks until the task has ended.
set Sets a task local variable. Will be deprecated soon.
terminate Terminates the task without notice as soon as it calls a blocking function.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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