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
-
(base class)Fiber
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.
|
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 .
|
join
|
Blocks until the task has ended.
|
set
|
Sets a task local variable.
|
terminate
|
Terminates the task without notice as soon as it calls a blocking function.
|
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.