问题
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