Not logged in
Log in now
Create an account
Subscribe to LWN
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
Um, er, epoll can call your callback with only a tiny bit of wrapping
Kernel events without kevents
Posted Mar 15, 2007 21:01 UTC (Thu) by bronson (subscriber, #4806)
Posted Mar 16, 2007 7:03 UTC (Fri) by pphaneuf (guest, #23480)
Thanks, it seems interesting, I'll definitely have a look, since I'm in the process of making a similar edge-triggered wrapper like this, but with the added twist of multithreaded (a limited number of threads, so that more events can be handled in a given amount of time, to use multicore systems and such while still being event driven).
Posted Mar 16, 2007 11:55 UTC (Fri) by bronson (subscriber, #4806)
Feel free to mail me at bronson at domain rinspin.com.
Posted Mar 16, 2007 6:59 UTC (Fri) by pphaneuf (guest, #23480)
Indeed, and I very much love epoll for that, but for that to work between a library and an application (with the library putting things into the epoll fd, and the application being the one calling epoll_wait()), they pretty much have to use the same tiny bit of wrapping.
After that, it can totally be done, but if you make your library for, say, libevent, and someone tries using it in a Qt program, it's a pain.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds