WaitForSingleObject and WaitForMultipleObjects equivalent in Linux?

后端 未结 4 946
醉酒成梦
醉酒成梦 2020-11-29 04:21

I am migrating an applciation from windows to linux. I am facing problem with respect to WaitForSingleObject and WaitForMultipleObjects interfaces.

4条回答
  •  鱼传尺愫
    2020-11-29 04:36

    For what it's worth, we (NeoSmart Technologies) have just released an open source (MIT licensed) library called pevents which implements WIN32 manual and auto-reset events on POSIX, and includes both WaitForSingleObject and WaitForMultipleObjects clones.

    Although I'd personally advise you to use POSIX multithreading and signaling paradigms when coding on POSIX machines, pevents gives you another choice if you need it.

提交回复
热议问题