网站首页  词典首页

请输入您要查询的函数:

 

术语 convertthreadtofiberex
释义 ConvertThreadToFiberEx
语法:
C++
LPVOID WINAPI ConvertThreadToFiberEx(
__in_opt LPVOID lpParameter,
__in DWORD dwFlags
);
ConvertThreadToFiberEx功能
光纤转换为当前线程。您必须转换为光纤线程,然后才可以安排其他纤维。
参数
lpParameter [中,可选]
一个变量传递到纤维的指针。该纤维可以检索使用GetFiberData宏观数据。
dwFlags [in]
如果此参数为0,浮点在x86系统的状态是不交换和数据可以损坏如果使用的光纤浮点运算。如果这个参数是FIBER_FLAG_FLOAT_SWITCH,浮点状态的光纤开关。
返回值
如果函数成功,返回值是光纤的地址。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
只有纤维可以执行其他纤维。如果执行线程需要光纤,它必须调用ConvertTheadToFiber或ConvertThreadToFiberEx创建一个领域,以节省光纤状态信息。该线程现在是当前的纤维。此光纤状态信息包括纤维的lpParameter指定的数据。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0400或更高版本。有关详细信息,请参阅使用Windows头。
要求:
client最低支持Vista
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
ConvertFiberToThread
纤维
GetFiberData
进程和线程函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==ConvertThreadToFiberEx Function
Converts the current thread into a fiber. You must convert a thread into a fiber before you can schedule other fibers.
Syntax
C++
LPVOID WINAPI ConvertThreadToFiberEx(
__in_opt LPVOID lpParameter,
__in DWORD dwFlags
);
Parameters
lpParameter [in, optional]
A pointer to a variable that is passed to the fiber. The fiber can retrieve this data by using the GetFiberData macro.
dwFlags [in]
If this parameter is zero, the floating-point state on x86 systems is not switched and data can be corrupted if a fiber uses floating-point arithmetic. If this parameter is FIBER_FLAG_FLOAT_SWITCH, the floating-point state is switched for the fiber.
Return Value
If the function succeeds, the return value is the address of the fiber.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
Only fibers can execute other fibers. If a thread needs to execute a fiber, it must call ConvertTheadToFiber or ConvertThreadToFiberEx to create an area in which to save fiber state information. The thread is now the current fiber. The state information for this fiber includes the fiber data specified by lpParameter.
To compile an application that uses this function, define _WIN32_WINNT as 0x0400 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
ConvertFiberToThread
Fibers
GetFiberData
Process and Thread Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682117(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:22:26