Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
をサポートするオブジェクトを作成することは可能epoll()ですか?
epoll()
互換性のあるシステム fd に依存するepoll_*システム コールにより、互換性のある「疑似 fd」を使用してオブジェクトを作成することが、不可能ではないにしても困難になると思いますが、間違っているかどうかを確認したいと思いました。(それは起こります:p)
epoll_*
オブジェクトをの片側に書き込みpipe(2)、もう一方の端をに渡しepoll.register()ます。明らかに、オブジェクトは同じスレッドで同時に実行することはできませんepoll.poll()。しかし、それでも他の有効なユースケースが残っています。
pipe(2)
epoll.register()
epoll.poll()