lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20021] conn->sem is only signaled one-way


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #20021] conn->sem is only signaled one-way
Date: Fri, 01 Jun 2007 11:51:15 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #7, bug #20021 (project lwip):

>I think it would be easiest to set down that lwIP expects binary semaphores
only.

Is it really good pratice to signal a binary semaphore more than once?

>Alternatively, you can move the current send buffer test into the tcp/ip
thread (so the caller thread effectively always waits, and its up to the
tcpip thread to whether it resumes).

That seems like the best solution. We also would need one semaphore less per
connection. Only non-blocking mode would be slower since it would call into
tcpip_thread although there is no space. But that's what we have to do with
our current (multithreaded) implementation...

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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