网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:29:49