[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: Frédéric Bernon
Subject: [lwip-devel] [patch #5960] Enable multithread send/recv operations on same socket on TCP netconns
Date: Wed, 23 May 2007 14:36:34 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv: Gecko/20070309 Firefox/

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

>Select doesn't use timeouts

For "select", it's an indirect call: lwip_select calls sys_sem_wait_timeout
which calls sys_timeout.

>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 that the "per-thread storage" is "OS dependant", but I'm sure that
code is pretty efficient :

struct sys_timeouts * sys_arch_timeouts(void)
{ return &(tasks_sys_timeouts[sys_get_current_task()]);

But it reserve memory for each task in the system (one pointer per task, I
have max 20 tasks, so 80 bytes on a 32bits arch).


Reply to this item at:


  Message posté via/par Savannah

reply via email to

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