lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32


From: patelbaroda
Subject: Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32
Date: Tue, 8 Dec 2009 20:33:16 -0800 (PST)

I have one thread for web server, that call "netconn_write" function. The
other thread is from ethernetif.c that handles the MACB input packets. The
TCPIP thread is handling TCPIP process as defined 

sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL,
TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO); (FreeRTOS)

Those lwip core functions are called from these two threads. Now I don't
understand, how I can combine these threads and make one.  


Kieran Mansley wrote:
> 
> On Mon, 2009-12-07 at 09:02 -0800, pragnesh patel wrote:
>> 
>> There is only one connection. As I understand, the crash inside
>> tcp_enqueue() may be because of two threads (one from incoming request
>> through tcp_in.c) and other outgoing request) and needs protection.
>> But as newcomer to lwip world, I don't know where to protect.
> 
> If you have multiple threads accessing the lwIP core at the same time
> you will see lots of problems like this.  I would fix that first and
> then see if the other problems you're seeing still remain.
> 
> Kieran 
> 
> 
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-with-do_writemore%28%29-%2B-LWIP-for-AVR32-tp26681732p26705062.html
Sent from the lwip-users mailing list archive at Nabble.com.





reply via email to

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