网站首页  词典首页

请输入您要查询的函数:

 

术语 createthreadpoolcleanupgroup
释义 CreateThreadpoolCleanupGroup
语法:
C++
PTP_CLEANUP_GROUP WINAPI CreateThreadpoolCleanupGroup(void);
CreateThreadpoolCleanupGroup功能
创建一个清理小组,应用程序可以使用跟踪一个或多个线程池的回调。
参数
这个函数没有参数。
返回值
如果函数成功,它返回一个新分配的清理小组TP_CLEANUP_GROUP结构。
如果函数失败,返回NULL。要检索扩展的错误信息,调用GetLastError。
备注
在创建清理小组,呼吁SetThreadpoolCallbackCleanupGroup联想到一个回调的环境清理小组。
一个成员被添加到组每次调用下列功能之一:
CreateThreadpoolIo
CreateThreadpoolTimer
CreateThreadpoolWait
CreateThreadpoolWork
您使用下面的相应密切的职能之一是从组中删除成员。
CloseThreadpoolIo
CloseThreadpoolTimer
CloseThreadpoolWait
CloseThreadpoolWork
要关闭所有的回调,呼吁CloseThreadpoolCleanupGroupMembers。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
实例
有关示例,请参阅使用线程池功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CloseThreadpoolCleanupGroup
CloseThreadpoolCleanupGroupMembers
SetThreadpoolCallbackCleanupGroup
线程池
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CreateThreadpoolCleanupGroup Function
Creates a cleanup group that applications can use to track one or more thread pool callbacks.
Syntax
C++
PTP_CLEANUP_GROUP WINAPI CreateThreadpoolCleanupGroup(void);
Parameters
This function has no parameters.
Return Value
If the function succeeds, it returns a TP_CLEANUP_GROUP structure of the newly allocated cleanup group.
If function fails, it returns NULL. To retrieve extended error information, call GetLastError .
Remarks
After creating the cleanup group, call SetThreadpoolCallbackCleanupGroup to associate the cleanup group with a callback environment.
A member is added to the group each time you call one of the following functions:
CreateThreadpoolIo
CreateThreadpoolTimer
CreateThreadpoolWait
CreateThreadpoolWork
You use one of the following corresponding close functions to remove a member from the group.
CloseThreadpoolIo
CloseThreadpoolTimer
CloseThreadpoolWait
CloseThreadpoolWork
To close all the callbacks, call CloseThreadpoolCleanupGroupMembers .
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or higher.
Examples
For an example, see Using the Thread Pool Functions .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CloseThreadpoolCleanupGroup
CloseThreadpoolCleanupGroupMembers
SetThreadpoolCallbackCleanupGroup
Thread Pools
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682462(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:30:20