WaitForMultipleObjects() 和 WSAEnumNetworkEvents() 的等效 linux API 是什么? 我们可以为 WaitForMultipleObjects 使用 pthread_cond_wait() 吗?
最佳答案
对于来自 Windows 背景的开发人员,我们在将一些代码从 Win32 移植到 pthreads 时遇到了同样的问题 and created an open source (MIT-licensed) library称为 pevents它在 Linux 上实现了 WaitForMultipleObjects()
,同时支持自动和手动重置事件。它的行为方式应与 Windows 上的 WIN32 事件相同。
关于linux - WaitForMultipleObjects() 和 WSAEnumNetworkEvents() 的等效 linux API 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13913882/