vibe.d beta banner
get vibe.d
0.7.30

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

  • core.thread.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) Reserved for internal use!
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.
tidInfo [get] inout(std.concurrency.ThreadInfo)

Methods

Name Description
bumpTaskCounter
interrupt Throws an InterruptExeption within the task as soon as it calls a blocking function.
join Blocks until the task has ended.
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.