lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #28775] select/event_callback: only check select_cb_li


From: Stephane Lesage
Subject: [lwip-devel] [bug #28775] select/event_callback: only check select_cb_list on change
Date: Sun, 07 Feb 2010 00:51:42 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Follow-up Comment #3, bug #28775 (project lwip):

You're right the wake-up test can be moved before the loop.

I think there's another optimization here.
Now, we parse the select_cb_list in all cases, and specifically the whole
list when nobody is waiting for that socket.

I think we could add a counter in the socket structure to count how many
threads are waiting for a particular socket in select().
If it's 0, no need to parse the list.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?28775>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]