网站首页  计算机词典

请输入您要查询的字词:

 

字词 submitthreadpoolwork
释义 SubmitThreadpoolWork
语法:
C++
VOID WINAPI SubmitThreadpoolWork(
__inout PTP_WORK pwk
);
SubmitThreadpoolWork功能
岗位工作对象的线程池。工作线程调用工作对象的回调函数。
参数
pwk [ in , out ]
阿TP_WORK结构,它定义的工作对象。该CreateThreadpoolWork函数返回这个结构。
返回值
这个函数没有返回值。
备注
您可以不事先后回调等待完成的工作对象,一次或多次(最多MAXULONG)。回调将并行执行。为了提高效率,线程池会扼杀线程。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
实例
有关示例,请参阅使用线程池功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CloseThreadpoolWork
CreateThreadpoolWork
线程池
WaitForThreadpoolWorkCallbacks
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SubmitThreadpoolWork Function
Posts a work object to the thread pool. A worker thread calls the work object's callback function.
Syntax
C++
VOID WINAPI SubmitThreadpoolWork(
__inout PTP_WORK pwk
);
Parameters
pwk [in, out]
A TP_WORK structure that defines the work object. The CreateThreadpoolWork function returns this structure.
Return Value
This function does not return a value.
Remarks
You can post a work object one or more times (up to MAXULONG) without waiting for prior callbacks to complete. The callbacks will execute in parallel. To improve efficiency, the thread pool may throttle the threads.
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
CloseThreadpoolWork
CreateThreadpoolWork
Thread Pools
WaitForThreadpoolWorkCallbacks
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686338(VS.85).aspx\n
随便看

 

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

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 20:45:14