Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X alternative to eventfd

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?

like image 707
adrian.nicolau Avatar asked Sep 29 '22 12:09

adrian.nicolau


1 Answers

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

like image 143
jilles Avatar answered Oct 02 '22 15:10

jilles