#include <fibers.h>
Inherits Thread.
|
| | FiberThread () |
| | constructor
|
| |
| virtual | ~FiberThread () |
| | destructor
|
| |
| void | EmitWakeupSignal () |
| | called if thread needs a wakeup call before stopping
|
| |
| void | DoWork () |
| | this method runs in the thread context
|
| |
| bool | HasWork () |
| | returns true if thread has work
|
| |
| void | SleepFiber (volatile int *counter, int value) |
| | sleeps the current fiber and switches it for a new one
|
| |
| void | NewFiber () |
| | switches the current fiber
|
| |
| void | SwitchFiber () |
| | switch back to original fiber
|
| |
◆ FiberThread()
| Fibers::FiberThread::FiberThread |
( |
| ) |
|
◆ ~FiberThread()
| Fibers::FiberThread::~FiberThread |
( |
| ) |
|
|
virtual |
◆ __DeclareClass()
◆ DoWork()
| void Fibers::FiberThread::DoWork |
( |
| ) |
|
this method runs in the thread context
◆ EmitWakeupSignal()
| void Fibers::FiberThread::EmitWakeupSignal |
( |
| ) |
|
called if thread needs a wakeup call before stopping
◆ HasWork()
| bool Fibers::FiberThread::HasWork |
( |
| ) |
|
returns true if thread has work
◆ NewFiber()
| void Fibers::FiberThread::NewFiber |
( |
| ) |
|
switches the current fiber
◆ SleepFiber()
| void Fibers::FiberThread::SleepFiber |
( |
volatile int * | counter, |
|
|
int | value ) |
sleeps the current fiber and switches it for a new one
◆ SwitchFiber()
| void Fibers::FiberThread::SwitchFiber |
( |
| ) |
|
switch back to original fiber
◆ currentFiber
◆ threadFiber
The documentation for this class was generated from the following files:
- /github/workspace/code/foundation/fibers/fibers.h
- /github/workspace/code/foundation/fibers/fibers.cc