网站首页  词典首页

请输入您要查询的函数:

 

术语 closethreadpooltimer
释义 CloseThreadpoolTimer
语法:
C++
VOID WINAPI CloseThreadpoolTimer(
__inout PTP_TIMER pti
);
CloseThreadpoolTimer功能
释放指定的计时器对象。
参数
交汇处[ in , out ]
阿TP_TIMER结构,它定义的计时器对象。该CreateThreadpoolTimer函数返回这个结构。
返回值
这个函数没有返回值。
备注
计时器对象是立即释放,如果没有任何悬而未决的回调,否则,计时器对象被释放后,未完成异步回调函数。
在某些案件中,回调函数可能运行后CloseThreadpoolTimer被称为。为了防止这种行为:
调用设置为NULL的pftDueTime参数和msPeriod和msWindowLength设置为0参数SetThreadpoolTimer功能。
调用WaitForThreadpoolTimerCallbacks功能。
呼叫CloseThreadpoolTimer。
如果有一个清理组,计时器对象的联系,但它没有必要调用此函数,调用CloseThreadpoolCleanupGroupMembers函数释放工作,等待,与清理组关联计时器对象。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CreateThreadpoolTimer
IsThreadpoolTimerSet
SetThreadpoolTimer
线程池
WaitForThreadpoolTimerCallbacks
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CloseThreadpoolTimer Function
Releases the specified timer object.
Syntax
C++
VOID WINAPI CloseThreadpoolTimer(
__inout PTP_TIMER pti
);
Parameters
pti [in, out]
A TP_TIMER structure that defines the timer object. The CreateThreadpoolTimer function returns this structure.
Return Value
This function does not return a value.
Remarks
The timer object is freed immediately if there are no outstanding callbacks; otherwise, the timer object is freed asynchronously after the outstanding callback functions complete.
In some cases, callback functions might run after CloseThreadpoolTimer has been called. To prevent this behavior:
Call the SetThreadpoolTimer function with the pftDueTime parameter set to NULL and the msPeriod and msWindowLength parameters set to 0.
Call the WaitForThreadpoolTimerCallbacks function.
Call CloseThreadpoolTimer.
If there is a cleanup group associated with the timer object, it is not necessary to call this function; calling the CloseThreadpoolCleanupGroupMembers function releases the work, wait, and timer objects associated with the cleanup group.
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or higher.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CreateThreadpoolTimer
IsThreadpoolTimerSet
SetThreadpoolTimer
Thread Pools
WaitForThreadpoolTimerCallbacks
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682040(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:25:22