[Top][All Lists]

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

[lwip-devel] [patch #5960] Enable multithread send/recv operations on sa

From: Jonathan Larmour
Subject: [lwip-devel] [patch #5960] Enable multithread send/recv operations on same socket on TCP netconns
Date: Wed, 23 May 2007 14:01:13 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070223 Fedora/ Firefox/

Follow-up Comment #7, patch #5960 (project lwip):

Yes, eCos for example has this issue - mboxes are a fixed size. Even for
variable size queues, ultimately it can fail - memory has to come from

Therefore it seems a return value for sys_mbox_post would be good. In another
task as Frederic says I guess.

As for the original suggestion of one sem per thread.... that might be hard
to do - not all OSes have per-thread data. I guess for those systems it might
not be so bad to create/destroy the semaphore each time (depending on a config

More importantly what do you do when threads go away? lwIP may not be told.
Maybe creating/destroying the semaphore each time is the only solution if you
want it to be per-thread.

If we had mutexes and condition variables, it might be different though!


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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