lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] sys_thread_new() problem


From: Kieran Mansley
Subject: Re: [lwip-users] sys_thread_new() problem
Date: Tue, 19 Jul 2011 17:08:59 +0100

On Tue, 2011-07-19 at 21:27 +0530, ambarisha b wrote:
> Hi,
> 
> The docs say that multi-threading isn't a compulsion with lwIP. But
> src/api/tcpip.c gives a call to sys_thread_new(). As far as I
> understand, it isn't in any #if block either. I would like not to have
> multi-threading, because a couple of functions I used aren't
> thread-safe. So, how can I work around this?

See http://lwip.wikia.com/wiki/LwIP_with_or_without_an_operating_system

In short: lwIP will work in either a single-threaded environment, or a
multi-threaded one.  The code in tcpip.c is part of the support for
multi-threaded systems (where lwIP gets its own thread).

Kieran




reply via email to

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