网站首页  词典首页

请输入您要查询的函数:

 

术语 setthreadpoolcallbackcleanupgroup
释义 SetThreadpoolCallbackCleanupGroup
语法:
C++
VOID SetThreadpoolCallbackCleanupGroup(
__inout PTP_CALLBACK_ENVIRON pcbe,
__in PTP_CLEANUP_GROUP ptpcg,
__in_opt PTP_CLEANUP_GROUP_CANCEL_CALLBACK pfng
);
SetThreadpoolCallbackCleanupGroup功能
协会与指定指定的回调环境清理小组。
参数
pcbe [ in , out ]
阿TP_CALLBACK_ENVIRON结构,它定义回调环境。该InitializeThreadpoolEnvironment函数返回这个结构。
ptpcg [in]
阿TP_CLEANUP_GROUP结构,它定义清理小组。该CreateThreadpoolCleanupGroup函数返回这个结构。
pfng [中,可选]
清理被称为回调,如果清理组相关联的对象之前,取消被释放。该函数被调用时调用CloseThreadpoolCleanupGroupMembers。
返回值
这个函数没有返回值。
备注
这个功能是作为一个内联函数。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
实例
有关示例,请参阅使用线程池功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
参见
DestroyThreadpoolEnvironment
InitializeThreadpoolEnvironment
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPool
SetThreadpoolCallbackRunsLong
线程池
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetThreadpoolCallbackCleanupGroup Function
Associates the specified cleanup group with the specified callback environment.
Syntax
C++
VOID SetThreadpoolCallbackCleanupGroup(
__inout PTP_CALLBACK_ENVIRON pcbe,
__in PTP_CLEANUP_GROUP ptpcg,
__in_opt PTP_CLEANUP_GROUP_CANCEL_CALLBACK pfng
);
Parameters
pcbe [in, out]
A TP_CALLBACK_ENVIRON structure that defines the callback environment. The InitializeThreadpoolEnvironment function returns this structure.
ptpcg [in]
A TP_CLEANUP_GROUP structure that defines the cleanup group. The CreateThreadpoolCleanupGroup function returns this structure.
pfng [in, optional]
The cleanup callback to be called if the cleanup group is canceled before the associated object is released. The function is called when you call CloseThreadpoolCleanupGroupMembers .
Return Value
This function does not return a value.
Remarks
This function is implemented as an inline 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)
See Also
DestroyThreadpoolEnvironment
InitializeThreadpoolEnvironment
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPool
SetThreadpoolCallbackRunsLong
Thread Pools
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686255(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 13:19:50