码迷,mamicode.com
首页 > 其他好文 > 详细

CompletionPort

时间:2015-10-01 11:38:20      阅读:130      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!