[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] netconn_write/recv from two different tasks..
From: |
Sylvain Rochet |
Subject: |
Re: [lwip-users] netconn_write/recv from two different tasks.. |
Date: |
Wed, 6 Mar 2013 11:27:01 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Thomas,
On Wed, Mar 06, 2013 at 01:14:57AM -0800, ThomasJ wrote:
>
> Could it be the fact I'm using netconn_write in one task and netconn_recv in
> another? Would it help using them in the same task? (First check for
> received data and then send data if any to send?)
Yes, this is the issue, a UDP or TCP control block through netconn must
NOT be used from different threads.
However, I must agree, lwIP documentation is probably not clear enough
about what is (dis)allowed in a multi-threaded context.
Sylvain
signature.asc
Description: Digital signature