加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

WaitForMultipleObjects()和WSAEnumNetworkEvents()的等效linux

发布时间:2020-12-14 01:18:16 所属栏目:Linux 来源:网络整理
导读:WaitForMultipleObjects()和WSAEnumNetworkEvents()的等效 linux API是什么? 我们可以对WaitForMultipleObjects使用pthread_cond_wait()吗? 解决方法 对于来自 Windows背景的开发人员,我们在将一些代码从Win32移植到名为 pevents的pthreads and created an
WaitForMultipleObjects()和WSAEnumNetworkEvents()的等效 linux API是什么?
我们可以对WaitForMultipleObjects使用pthread_cond_wait()吗?

解决方法

对于来自 Windows背景的开发人员,我们在将一些代码从Win32移植到名为 pevents的pthreads and created an open source (MIT-licensed) library(在Linux上实现WaitForMultipleObjects()时遇到了同样的问题,同时支持自动和手动重置事件.它的行为方式应与Windows上的WIN32事件相同.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读