lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] conn->err = ERR_CLSD in api_lib.c


From: Kieran Mansley
Subject: RE: [lwip-users] conn->err = ERR_CLSD in api_lib.c
Date: Thu, 08 Oct 2009 09:27:39 +0100

On Wed, 2009-10-07 at 15:54 -0400, David Shmelzer wrote:
> I traced the problem to conn->err being assigned a value in separate
> threads.
> One in recv_tcp() and another in netconn_recv().
> 
> recv_tcp() is called from the tcpip_thread and netconn_recv() is called
> from a separate thread. 
> Am I using netconns incorrectly? 
> If so, shouldn't conn->err be a thread safe variable since it is
> accessed from tcpip_thread as well as the thread using the netconn api?
> conn->recv_avail is thread safe.

If that is the case I think it should.  Could you file a bug?

Kieran





reply via email to

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