网站首页  词典首页

请输入您要查询的函数:

 

术语 closethreadpoolcleanupgroupmembers
释义 CloseThreadpoolCleanupGroupMembers
语法:
C++
VOID WINAPI CloseThreadpoolCleanupGroupMembers(
__inout PTP_CLEANUP_GROUP ptpcg,
__in BOOL fCancelPendingCallbacks,
__inout_opt PVOID pvCleanupContext
);
CloseThreadpoolCleanupGroupMembers功能
公告指定的清理小组成员,等待所有回调函数来完成,并选择性地取消任何悬而未决的回调函数。
参数
ptpcg [ in , out ]
阿TP_CLEANUP_GROUP结构,它定义清理小组。该CreateThreadpoolCleanupGroup函数返回这个结构。
fCancelPendingCallbacks [in]
如果此参数为TRUE,函数取消尚未开始突出回调。
pvCleanupContext [中,指出,可选]
应用程序定义的数据传递给应用程序的清理小组回调函数。您可以指定回调函数当调用SetThreadpoolCallbackCleanupGroup。
返回值
这个函数没有返回值。
备注
应用程序应该释放一个清理小组的成员只有一次。例如,在调用CloseThreadpoolCleanupGroupMembers,没有必要要求,如对同一个清理小组成员CloseThreadpoolWork一个发布的功能,因为CloseThreadpoolCleanupGroupMembers释放工作,等待,与清理组关联计时器对象。
它可以添加在调用CloseThreadpoolCleanupGroupMembers,它允许应用程序重用清理小组成员的清理小组。为了防止这种行为,应该同步的应用程序代码的代码,添加成员到组要求CloseThreadpoolCleanupGroupMembers。阿清理小组一直持续到应用程序调用CloseThreadpoolCleanupGroup功能。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
实例
有关示例,请参阅使用线程池功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CloseThreadpoolCleanupGroup
CreateThreadpoolCleanupGroup
SetThreadpoolCallbackCleanupGroup
线程池
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CloseThreadpoolCleanupGroupMembers Function
Releases the members of the specified cleanup group, waits for all callback functions to complete, and optionally cancels any outstanding callback functions.
Syntax
C++
VOID WINAPI CloseThreadpoolCleanupGroupMembers(
__inout PTP_CLEANUP_GROUP ptpcg,
__in BOOL fCancelPendingCallbacks,
__inout_opt PVOID pvCleanupContext
);
Parameters
ptpcg [in, out]
A TP_CLEANUP_GROUP structure that defines the cleanup group. The CreateThreadpoolCleanupGroup function returns this structure.
fCancelPendingCallbacks [in]
If this parameter is TRUE, the function cancels outstanding callbacks that have not yet started.
pvCleanupContext [in, out, optional]
The application-defined data to pass to the application's cleanup group callback function. You can specify the callback function when you call SetThreadpoolCallbackCleanupGroup .
Return Value
This function does not return a value.
Remarks
An application should release a cleanup group member only once. For example, after calling CloseThreadpoolCleanupGroupMembers, it is not necessary to call a release function such as CloseThreadpoolWork on the same member of a cleanup group, because CloseThreadpoolCleanupGroupMembers releases the work, wait, and timer objects associated with the cleanup group.
It is possible to add members to a cleanup group after calling CloseThreadpoolCleanupGroupMembers, which allows the application to reuse the cleanup group. To prevent this behavior, an application should synchronize code that calls CloseThreadpoolCleanupGroupMembers with code that adds members to the group. A cleanup group persists until the application calls the CloseThreadpoolCleanupGroup function.
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
CreateThreadpoolCleanupGroup
SetThreadpoolCallbackCleanupGroup
Thread Pools
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682036(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:27