网站首页  词典首页

请输入您要查询的函数:

 

术语 startthreadpoolio
释义 StartThreadpoolIo
语法:
C++
VOID WINAPI StartThreadpoolIo(
__inout PTP_IO pio
);
StartThreadpoolIo功能
通知线程池,I / O操作可能开始在指定的I / O完成对象。工作线程调用I / O完成对象的回调函数手术后的文件句柄绑定到这个对象完成。
参数
皮奥[ in , out ]
阿TP_IO结构,它定义的I / O完成对象。该CreateThreadpoolIo函数返回这个结构。
返回值
这个函数没有返回值。
备注
您必须在发起调用的文件句柄绑定到I / O完成对象的每一个异步I / O操作此功能。不这样做将导致线程池忽视的I / O操作完成时,将导致内存损坏。
如果I / O操作失败,调用CancelThreadpoolIo函数取消此通知。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CancelThreadpoolIo
CloseThreadpoolIo
CreateThreadpoolIo
线程池
WaitForThreadpoolIoCallbacks
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==StartThreadpoolIo Function
Notifies the thread pool that I/O operations may possibly begin for the specified I/O completion object. A worker thread calls the I/O completion object's callback function after the operation completes on the file handle bound to this object.
Syntax
C++
VOID WINAPI StartThreadpoolIo(
__inout PTP_IO pio
);
Parameters
pio [in, out]
A TP_IO structure that defines the I/O completion object. The CreateThreadpoolIo function returns this structure.
Return Value
This function does not return a value.
Remarks
You must call this function before initiating each asynchronous I/O operation on the file handle bound to the I/O completion object. Failure to do so will cause the thread pool to ignore an I/O operation when it completes and will cause memory corruption.
If the I/O operation fails, call the CancelThreadpoolIo function to cancel this notification.
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
CancelThreadpoolIo
CloseThreadpoolIo
CreateThreadpoolIo
Thread Pools
WaitForThreadpoolIoCallbacks
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686326(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:01