Increasing MAXIMUM_WAIT_OBJECTS for WaitforMultipleObjects

后端 未结 3 818
佛祖请我去吃肉
佛祖请我去吃肉 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:00

    Have a look here.

    If you need to wait on more than MAXIMUM_WAIT_OBJECTS handles, you can either create a separate thread to wait on MAXIMUM_WAIT_OBJECTS and then do a wait on these threads to finish. Using this method you can create MAXIMUM_WAIT_OBJECTS threads each of those can wait for MAXIMUM_WAIT_OBJECTS object handles.

提交回复
热议问题