[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: Simon Goldschmidt
Subject: [lwip-devel] [patch #5960] Enable multithread send/recv operations on same socket on TCP netconns
Date: Wed, 23 May 2007 14:24:01 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20070309 Firefox/

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

>Note, than now, timeouts are mainly used by tcpip_thread (exceptions are
select & PPP)...

Select doesn't use timeouts, only tcpip_thread and PPP.
But if another thread (api thread before your last checkin changing
sys_mbox_fetch to sys_arch_mbox_fetch) waits parsing timeouts and parses the
timeout list of tcpip_thread, the core is very likely to crash! Therefore,
for the current implementation, per-thread storage _is_ necessary.

What you do (static table indexed per task id) is a workaround that can be
used for system not supporting per-thread storage but is (almost for sure)
slower than direct per-thread storage. I think we should keep the speed of
that in mind while re-designing!


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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