OSX替代eventfd [英] OS X alternative to eventfd

查看:71
本文介绍了OSX替代eventfd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

eventfd 是特定于Linux的.我需要将一个使用Linux编写的库移植到OS X上,该库使用了此事件通知系统.有没有办法做到这一点?

eventfd is Linux-specific. I need to port a library written on Linux which makes use of this event notification system to OS X. Is there a way to accomplish this?

推荐答案

两个选项是 pipe kqueue EVFILT_USER .这取决于 eventfd 的使用情况.

Two options are a pipe and kqueue's EVFILT_USER. It depends on how exactly eventfd is being used.

这篇关于OSX替代eventfd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆