4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
ConvertThreadToFiberEx function (winbase.h) - Win32 apps |...
来自 : docs.microsoft.com/zh-cn/windo 发布时间:2021-03-25

Converts the current thread into a fiber. You must convert a thread into a fiber before you can schedule other fibers.

Syntax
LPVOID ConvertThreadToFiberEx( LPVOID lpParameter, DWORD dwFlags
Parameters

lpParameter

A pointer to a variable that is passed to the fiber. The fiber can retrieve this data by using theGetFiberData macro.

dwFlags

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, callGetLastError.

Remarks

Only fibers can execute other fibers. If a thread needs to execute a fiber, it must callConvertTheadToFiber orConvertThreadToFiberEx 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, seeUsing the Windows Headers.

Requirements
2018年12月5日LPVOID ConvertThreadToFiberEx( LPVOID lpParameter, DWORD dwFlags ); ParameterslpParameterA pointer to a variable that is passed to the fiber...Converts the current thread into a fiber. You must convert a thread into a fiber before you can schedule other fibers.ConvertThreadToFiberEx function (winbase.h)

本文链接: http://convertex.immuno-online.com/view-769710.html

发布于 : 2021-03-25 阅读(0)