LWN.net Logo

timerfd() and system call review

timerfd() and system call review

Posted Aug 17, 2007 11:49 UTC (Fri) by Octavian (subscriber, #7462)
In reply to: timerfd() and system call review by clugstj
Parent article: timerfd() and system call review

> Why is this going into the kernel? It is trivial to achieve the same effect in userspace with pipe() and a thread sleeping in pthread_cond_timedwait().

The pipe() mechanism to achieve synchr. timer events wrt epoll()/select() are considered a 'trick' I suppose (which I've used in my own projects too). So, in the end we do not need to remember this trick at least, that's an achievement.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds