首页 > 其他 > 详细

CompletionPort

时间:2015-10-01 11:35:57      阅读:146      评论:0      收藏:0      [点我收藏+]

CompletionPort

1、CreateIoCompletionPort。此方法用于创建与绑定。

  技术分享

  CompletionKey是自定义数据,用于区分FileHandle。

  NumberOfConcurrentThreads [in]

  The maximum number of threads that the operating system can allow to concurrently process I/O completion packets for the I/O completion port. This parameter is ignored if the ExistingCompletionPortparameter is not NULL.

  If this parameter is zero, the system allows as many concurrently running threads as there are processors in the system.

参考:https://msdn.microsoft.com/en-us/library/windows/desktop/aa363862(v=vs.85).aspx

2、GetQueuedCompletionStatus。 

  技术分享

  Returns nonzero (TRUE) if successful or zero (FALSE) otherwise.

参考:https://msdn.microsoft.com/en-us/library/windows/desktop/aa364986(v=vs.85).aspx

 

CompletionPort

原文:http://www.cnblogs.com/tekkaman/p/4850781.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!