lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LwIP and semaphores.


From: Kieran Mansley
Subject: Re: [lwip-users] LwIP and semaphores.
Date: Fri, 01 Jun 2007 10:52:39 +0100

On Fri, 2007-06-01 at 11:41 +0200, address@hidden
wrote:
> 
> Does LwIP make any asumption on the order that semaphores are
> released. 
> I.e. if two threads use LwIP does the LwIP TCP/IP-thread assume that
> the messages 
> sent over a common message box will be received by the threads in the
> order that they are sent? 
> Or is it ok to have a "polling" semaphore system where threads waiting
> on the same semaphore might 
> be woken regardless to how long they have been waiting. 

Can you provide some more details?  This sounds rather like you're using
the same connection from two different threads without using a mutex to
protect it.  Frederic is the expert on this, and has ideas about how to
resolve it, but it's known not to work at the moment.  It's probably
best to assume that lwIP, for reasons of simplicity, doesn't currently
support multiple threads using the same connection at the same time.

Kieran





reply via email to

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