网站首页  词典首页

请输入您要查询的函数:

 

术语 initializethreadpoolenvironment
释义 InitializeThreadpoolEnvironment
语法:
C++
VOID InitializeThreadpoolEnvironment(
__out PTP_CALLBACK_ENVIRON pcbe
);
InitializeThreadpoolEnvironment功能
初始化回调的环境。
参数
pcbe [out]
阿TP_CALLBACK_ENVIRON结构,它定义一个回调的环境。
返回值
这个函数没有返回值。
备注
默认情况下,回调在执行过程中默认的线程池。没有清理组与环境相关的回调,调用方保持回调的DLL加载负责,而有杰出的回调,而回调将运行在一个应用程序的合理时间。
创建一个回调的环境如果您打算调用下列功能之一来修改环境:
SetThreadpoolCallbackCleanupGroup
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPool
SetThreadpoolCallbackRunsLong
使用默认的回调环境,设置可选的回调环境参数为NULL时调用下列功能之一:
CreateThreadpoolIo
CreateThreadpoolTimer
CreateThreadpoolWait
CreateThreadpoolWork
TrySubmitThreadpoolCallback
该InitializeThreadpoolEnvironment功能是作为一个内联函数。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
实例
有关示例,请参阅使用线程池功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
参见
DestroyThreadpoolEnvironment
SetThreadpoolCallbackCleanupGroup
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPool
SetThreadpoolCallbackRunsLong
线程池
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==InitializeThreadpoolEnvironment Function
Initializes a callback environment.
Syntax
C++
VOID InitializeThreadpoolEnvironment(
__out PTP_CALLBACK_ENVIRON pcbe
);
Parameters
pcbe [out]
A TP_CALLBACK_ENVIRON structure that defines a callback environment.
Return Value
This function does not return a value.
Remarks
By default, a callback executes in the default thread pool for the process. No cleanup group is associated with the callback environment, the caller is responsible for keeping the callback's DLL loaded while there are outstanding callbacks, and the callback is expected to run in a reasonable amount of time for the application.
Create a callback environment if you plan to call one of the following functions to modify the environment:
SetThreadpoolCallbackCleanupGroup
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPool
SetThreadpoolCallbackRunsLong
To use the default callback environment, set the optional callback environment parameter to NULL when calling one of the following functions:
CreateThreadpoolIo
CreateThreadpoolTimer
CreateThreadpoolWait
CreateThreadpoolWork
TrySubmitThreadpoolCallback
The InitializeThreadpoolEnvironment 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
SetThreadpoolCallbackCleanupGroup
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPool
SetThreadpoolCallbackRunsLong
Thread Pools
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683486(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:21:09