Increasing MAXIMUM_WAIT_OBJECTS for WaitforMultipleObjects

后端 未结 3 814
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-18 08:18

What is the simplest way to wait for more objects than MAXIMUM_WAIT_OBJECTS? MSDN lists this:

  • Create a thread to wait on MAXIMUM_WAIT_OBJEC
3条回答
  •  眼角桃花
    2020-12-18 09:03

    If you find yourself waiting on tons of objects you might want to look into IO Completion Ports instead. For large numbers of parallel operations IOCP is much more efficient.

    And the name IOCP is misleading, you can easily use IOCP for your own synchronization structures as well.

提交回复
热议问题