SwitchToFiber (Windows CE 5.0)
This function schedules a fiber.
The caller must be a fiber.
VOID WINAPI SwitchToFiber(LPVOID lpFiber);
Parameters
- lpFiber
[in] Specifies the address of the fiber to be scheduled.
Return Values
None.
Remarks
You create fibers with CreateFiber.
Before you can schedule fibers associated with a thread, you must call ConvertThreadToFiber to set up an area to save the fiber state information in. The thread becomes the currently executing fiber.
The SwitchToFiber function saves the state information of the current fiber and restores the state of the specified fiber.
You can call SwitchToFiber with the address of a fiber created by a different thread. To do this, you must have the address returned to the other thread when it called CreateFiber and you must use proper synchronization.
Avoid making the following call.
SwitchToFiber( GetCurrentFiber() );
**Note **This call is a no-operation instruction in Windows CE.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.
See Also
ConvertThreadToFiber | CreateFiber
Send Feedback on this topic to the authors