Marc A. Volovic wrote:
Quoth Daniel Feiglin:
My strategy is to have each fd read into a bit of shared memory, post a
"got something" semaphore and return. You do it with 5 little if()
paragraphs (error handling aside), reset the read bit mask (always the
same) and back to select.
How many consumers? If you post a sem, someone is waiting on it... I
assume your consumer then employs the retrieved data and posts it back?
Sounds like you're using a semaphore for what ought to be done via a
POSIX condition variable.
Just my 2cs,
Gilad
--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com | SIP: [EMAIL PROTECTED]
IL: +972.3.7515563 ext. 201 | Fax: +972.3.7515503
US: +1.212.2026643 ext. 201 | Cel: +972.52.8260388
The journey of a thousand miles begins with a single "oy."
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]