网站首页  计算机词典

请输入您要查询的字词:

 

字词 setthreadpoolthreadminimum
释义 SetThreadpoolThreadMinimum
语法:
C++
BOOL WINAPI SetThreadpoolThreadMinimum(
__inout PTP_POOL ptpp,
__in DWORD cthrdMic
);
SetThreadpoolThreadMinimum功能
设置线程的最小数目指定的线程池必须提供处理回调。
参数
ptpp [ in , out ]
阿TP_POOL结构定义线程池。该CreateThreadpool函数返回这个结构。
cthrdMic [in]
线程的最小数目。
返回值
如果函数成功,返回TRUE。
如果函数失败,返回FALSE。要检索扩展的错误信息,调用GetLastError。
备注
指定线程池的可分配的最大数目,请SetThreadpoolThreadMaximum。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
实例
有关示例,请参阅使用线程池功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CloseThreadpool
CreateThreadpool
SetThreadpoolThreadMaximum
线程池
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetThreadpoolThreadMinimum Function
Sets the minimum number of threads that the specified thread pool must make available to process callbacks.
Syntax
C++
BOOL WINAPI SetThreadpoolThreadMinimum(
__inout PTP_POOL ptpp,
__in DWORD cthrdMic
);
Parameters
ptpp [in, out]
A TP_POOL structure that defines the thread pool. The CreateThreadpool function returns this structure.
cthrdMic [in]
The minimum number of threads.
Return Value
If the function succeeds, it returns TRUE.
If the function fails, it returns FALSE. To retrieve extended error information, call GetLastError .
Remarks
To specify the maximum number of threads that the pool may allocate, call SetThreadpoolThreadMaximum .
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
CloseThreadpool
CreateThreadpool
SetThreadpoolThreadMaximum
Thread Pools
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686268(VS.85).aspx\n
随便看

 

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

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/24 0:42:44