chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.72k stars 1.19k forks source link

File support on kqueue #1000

Open vinipsmaker opened 2 years ago

vinipsmaker commented 2 years ago

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).

timblechmann commented 7 months 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

manipuladordedados commented 4 months ago

FreeBSD has already included improvements that make this task more feasible.