Index   Commented   Search   About

Overview
Group
Quick Info

Windows NT
Yes
Win95
No
Win32s
No
Import Library
kernel32.lib
Header File
winbase.h
Unicode
No
Platform Notes
None

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. Before you can schedule fibers associated with a thread, you must call ConvertThreadToFiber to set up an area in which to save the fiber state information. The thread is now the currently executing fiber.

Warning Avoid making the following call:

SwitchToFiber( GetCurrentFiber() );

This call causes unpredictable problems.

See Also

CreateFiber
, ConvertThreadToFiber

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun