[Top][All Lists]

[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: Gecko/20070515 Firefox/

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

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

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:


  Nachricht geschickt von/durch Savannah

reply via email to

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