Multiple I/O Completion Ports

youngrp

Can I create multiple I/O Completion Ports in a single application? I mean, hold two or more CreateIoCompletionPort handles with their own CompletionKey's? My application has 2 IOCP Classes with their own client structures starting from the index 0. I use these indexes in the CompletionKey so I believe that in some point this causing conflict because my application leads to a deadlock without any logical reason. Triple checked for any deadlock situation and run in debugging mode not helped!

Len Holgate

Yes. You can create as many IOCPs as you like*.

I expect you have a bug in your code or a standard 'deadlock caused by lock inversions'.

Can you break into the app in the debugger when it has deadlocked and see what the threads are doing?

(* subject to the usual resource limitations, memory, etc).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related