eventfd是特定于 Linux 的。我需要将一个使用此事件通知系统的 Linux 编写的库移植到 OS X。有办法实现吗?
最佳答案
两个选项是pipe
和kqueue
的EVFILT_USER
。这取决于 eventfd
的使用方式。
关于linux - eventfd 的 OS X 替代品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26603615/
eventfd是特定于 Linux 的。我需要将一个使用此事件通知系统的 Linux 编写的库移植到 OS X。有办法实现吗?
最佳答案
两个选项是pipe
和kqueue
的EVFILT_USER
。这取决于 eventfd
的使用方式。
关于linux - eventfd 的 OS X 替代品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26603615/