OS X alternative to eventfd

孤街浪徒 提交于 2021-02-19 01:42:29

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/26603615/os-x-alternative-to-eventfd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!