logoalt Hacker News

asveikautoday at 12:58 AM1 replyview on HN

This is a fluffy, non-technical article so I googled NTSYNC. It seems like they implement Win32 events, semaphores, mutex and WaitForMultipleObjects.

It's curious that they didn't do this as file descriptors that can be epolled. For example I think you could do semaphores and events with eventfd(2), which always struck me as inspired by those Win32 objects somehow. But maybe this is a simpler purpose built interface.


Replies

peesemtoday at 1:01 AM

isn't this how esync works?

edit: i think so https://github.com/zfigura/wine/blob/esync/README.esync