Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It works with file handles too.

> Also that pattern is a bit too sweet as it can be a nice way to create condition variables or queues, the problem being one is now paying syscall overhead.

Sure but you don't need to, and even if you did, the system call overhead is probably not the hill you're dying on, or if it is then you want io_uring or similar.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: