CompletionPort
2015-10-01 11:03
225 查看
【CompletionPort】
1、CreateIoCompletionPort。此方法用于创建与绑定。此方法调用后,socket即退出,只能通过CompletionKey来辨认是哪个socket的消息。
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
1、CreateIoCompletionPort。此方法用于创建与绑定。此方法调用后,socket即退出,只能通过CompletionKey来辨认是哪个socket的消息。
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
相关文章推荐
- SpriteBuilder中如何固定两个互不接触的物理物体?
- Servlet 3.0异步处理
- uboot.lds 链接脚本语法规则
- SpriteBuilder中如何固定两个互不接触的物理物体?
- SpriteBuilder中如何固定两个互不接触的物理物体?
- Spark DAGScheduler 功能及源码解析
- org.eclipse.birt.report.data.oda.jdbc.JDBCException: Missing properties in Connection.open(Propertie
- Insertion Sort List
- UDP总结
- 操作系统 - 中断
- 构架https服务器
- shiro用authc配置后登录成功后不能跳转到index页面
- vi使用方法详细介绍
- 趣谈大数据
- Java中启动线程start和run方法的区别
- 字符串匹配——C++使用Regex
- thanks大学
- Linux各目录及每个目录的详细介绍
- i5需
- C++ Primer Plus 课后习题 第二章