Nebula
Loading...
Searching...
No Matches
Fibers::Fiber Class Reference

#include <fiber.h>

Public Member Functions

 Fiber ()
 constructor
 
 Fiber (std::nullptr_t)
 construct from nullpointer
 
 Fiber (void(*Function)(void *), void *context)
 constructor
 
 Fiber (const Fiber &rhs)
 copy constructor
 
 ~Fiber ()
 destructor
 
void operator= (const Fiber &rhs)
 assignment operator
 
void SwitchToFiber (Fiber &CurrentFiber)
 switch to this fiber
 

Static Public Member Functions

static void ThreadToFiber (Fiber &fiber)
 convert thread to fiber
 
static void FiberToThread (Fiber &fiber)
 convert fiber back to thread
 

Private Attributes

void * handle
 
void * context
 

Constructor & Destructor Documentation

◆ Fiber() [1/4]

Fibers::Fiber::Fiber ( )

constructor

◆ Fiber() [2/4]

Fibers::Fiber::Fiber ( std::nullptr_t )

construct from nullpointer

◆ Fiber() [3/4]

Fibers::Fiber::Fiber ( void(* Function )(void *),
void * context )

constructor

◆ Fiber() [4/4]

Fibers::Fiber::Fiber ( const Fiber & rhs)

copy constructor

◆ ~Fiber()

Fibers::Fiber::~Fiber ( )

destructor

Member Function Documentation

◆ FiberToThread()

void Fibers::Fiber::FiberToThread ( Fiber & fiber)
static

convert fiber back to thread

◆ operator=()

void Fibers::Fiber::operator= ( const Fiber & rhs)

assignment operator

◆ SwitchToFiber()

void Fibers::Fiber::SwitchToFiber ( Fiber & CurrentFiber)

switch to this fiber

◆ ThreadToFiber()

void Fibers::Fiber::ThreadToFiber ( Fiber & fiber)
static

convert thread to fiber

Member Data Documentation

◆ context

void* Fibers::Fiber::context
private

◆ handle

void* Fibers::Fiber::handle
private

The documentation for this class was generated from the following files: