[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: Jonathan Larmour
Subject: [lwip-devel] [bug #20021] conn->sem is only signaled one-way
Date: Fri, 01 Jun 2007 16:40:50 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070530 Fedora/ Firefox/

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

The existing behaviour of netconn_write is to block and wait if out of mem or
send window, so to preserve that, the calling thread would block in
tcpip_apimsg waiting for the sys_arch_mbox_fetch (or whatever replaces it,
from Frederic's work) to return. The tcpip thread would only wake it up when
it really does complete. So I think you can guarantee someone is waiting
because that's where they will be blocked.

That seems the best approach that would avoid race conditions, to me, but
there are probably others.

NB I'm going on vacation this weekend, so won't be able to contribute more to
this discussion after tonight.... I just say that in case you direct something
to me and I don't answer :).


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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