|
|
Log in / Subscribe / Register

A Plumber's Wish List for Linux

A Plumber's Wish List for Linux

Posted Oct 7, 2011 21:51 UTC (Fri) by wahern (subscriber, #37304)
In reply to: A Plumber's Wish List for Linux by kpfleming
Parent article: A Plumber's Wish List for Linux

Use eventfd() instead of a pipe. In fact, use it instead of a POSIX mutex when you want to be able to poll on it. That's what it was invented for--rolling your own pollable semaphores.


to post comments

A Plumber's Wish List for Linux

Posted Oct 8, 2011 14:08 UTC (Sat) by kpfleming (subscriber, #23250) [Link]

Thanks for that tip... that might be just what I've been looking for (and signalfd() looks quite handy too).


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