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)

Constructors

Name Description
this

Fields

Name Type Description
m_running shared(bool)
m_taskCounter shared(ulong)

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 Deprecated. Returns a task local variable.
interrupt Throws an InterruptExeption within the task as soon as it calls a blocking function.
isSet Deprecated. Determines if a certain task local variable is set.
join Blocks until the task has ended.
set Deprecated. Sets a task local variable.
terminate Terminates the task without notice as soon as it calls a blocking function.
resetLocalStorage Clears all task local variables.

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.