|
From: | Simon Goldschmidt |
Subject: | [lwip-devel] [bug #28775] select/event_callback: only check select_cb_list on change |
Date: | Mon, 01 Feb 2010 15:51:38 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 |
Follow-up Comment #2, bug #28775 (project lwip): That would have been covered by the initial check (lwip_selscan() is called before actually waiting). If no socket is initially ready, it would indeed be necessary to add a second lwip_selscan() between adding the new semaphore to the list and releasing selectsem. But I guess that's OK since I'd rater improve the common case (RX packets) instead of improving the runtime of select(). I'll prepare a patch. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?28775> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |