lwip-devel
[Top][All Lists]
Advanced

[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:43:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 Fedora/1.5.0.10-1.fc5 Firefox/1.5.0.10

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

Re timeouts: sort of, yes. But it's a pain if you don't have real per-thread
data. Instead you have to have a table with entries for each thread, and look
it up each time (and this is even worse if threads can be deleted). Anyway,
this is a side issue - more important is whether a per-thread sem can even
work anyway.

With a mutex and condition variable instead of a semaphore, you can interlock
more nicely with the tcpip thread. That's hard now without things like
SYS_ARCH_PROTECT (which just acts like a really large mutex). These would be
per-connection, not per-thread though. But it would more nicely solve the
send/recv safety issue.



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5960>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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