SwitchToFiber
The SwitchToFiber
function schedules a fiber.
VOID SwitchToFiber(
LPVOID lpFiber |
// pointer to fiber
to switch to |
); |
|
Parameters
lpFiber
Specifies the
address of the fiber to switch to.
Return Values
This function
does not return a value.
Remarks
The SwitchToFiber
function is used to manually schedule a fiber. This function saves the state
information of the current fiber and restores the state of the specified fiber.
The caller of this routine must be a fiber.
You create
fibers with CreateFiber
Warning Avoid making
the following call:
SwitchToFiber( GetCurrentFiber() );
This call
causes unpredictable problems.
See Also