FiberPointer

Pointer to data on another Fiber's stack

This is a pointer to data that reside on another fiber's stack. It is assumed that the other fiber knows not to exit the function while the pointer is in effect.

This construct protects against the case that the other fiber is killed while the pointer is still live.

Constructors

this
this(T* ptr)

Construct a FiberPointer.

Alias This

get

The FiberPointer acts as the pointer itself

Members

Functions

reset
void reset()

Reset the pointer

Properties

get
T* get [@property getter]

Returns the pointer.

isValid
bool isValid [@property getter]

Reports whether the pointer is currently valid

ownerFiber
auto ownerFiber [@property getter]

Return a handle to the owning fiber, if valid

Parameters

T

The pointer type to use

Meta