lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Advanced lwip raw API questions


From: ella
Subject: Re: [lwip-users] Advanced lwip raw API questions
Date: Mon, 18 Nov 2013 11:13:54 -0800 (PST)

Hi,
Thanks for your reply.

The most disturbing thing for me is your NO to my question about tcp_*
thread safe. In other words it means that all processing should be done in
tcp callback ONLY as this is the only code running in tcp thread context !?

Right now I did something like this:

/* Receive Callback (tcp thread)*/
...
xQueueSend( queue_srv, &my_data, 0 );

/* Server Thread (My server thread) */
xQueueReceive( queue_srv, &my_data ... );
/* Processing */
...
tcp_write( ... );
tcp_output( .... );

If tcp_write and tcp_output are not thread safe I do not know how to
implement server that requires long processing.




--
View this message in context: 
http://lwip.100.n7.nabble.com/Advanced-lwip-raw-API-questions-tp22050p22057.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

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