Class TaskFiber

The base class for a task aka Fiber.

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

Inherits from

Methods

Name Description
thread Returns the thread that owns this task.
task Returns the handle of the current Task running on this fiber.
messageQueue
join Blocks until the task has ended.
interrupt Throws an InterruptExeption within the task as soon as it calls a blocking function.
terminate Terminates the task without notice as soon as it calls a blocking function.
set Sets a task local variable.
get Returns a task local variable.
isSet Determines if a certain task local variable is set.

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.