Open vinipsmaker opened 2 years ago
i'd very much love to see support for user-provided kevent
, similar to posix::stream_descriptor
or windows::object_handle
. afaict it's the only way to implement "event" or "semaphore" style functionality like with eventfd
/ CreateEvent
on linux/win32
FreeBSD has already included improvements that make this task more feasible.
It'd be possible to add non-threaded non-blocking file IO support to FreeBSD as well. POSIX AIO follows the proactor design so it's fine to use it to implement file IO. And it's possible to configure kqueue to consume AIO notifications (EVFILT_AIO/SIGEV_KEVENT).