Struct FiberPointer

Pointer to data on another Fiber's stack

struct FiberPointer(T) ;

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

NameDescription
this Construct a FiberPointer.

Properties

NameTypeDescription
get[get] T*Returns the pointer.
isValid[get] boolReports whether the pointer is currently valid
ownerFiber[get] autoReturn a handle to the owning fiber, if valid

Methods

NameDescription
reset Reset the pointer

Parameters

NameDescription
T The pointer type to use