lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Bug in pbuf.c regarding PBUF_POOL


From: Peter Graf
Subject: Re: [lwip-users] Bug in pbuf.c regarding PBUF_POOL
Date: Sun, 12 Nov 2006 11:24:46 +0100 (MET)
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Leon Woestenberg wrote:

>> Thanks for the detailed post - good to see folks getting to grips with
>> the stack.  The above seemed to summarise quite nicely and I agree
>> completely with that.
>>
> I completely agree with you; It's good to see there is interest in the
> lwIP stack from developers that are concerned abouts its correctness.
> 
> The SYS_LIGHTWEIGHT_PROT protection was introduced by one of the
> developers using the stack to protect *ONLY* between interrupt context
> and single-thread user-space context if I am not mistaken.

I think you are mistaken.

> I am all for removing it, because the locking solution does not scale
> across different platforms.

I have to use SYS_LIGHTWEIGHT_PROT in a _multithreaded_ environment with
interrupt-triggered device driver. Removing it would render lwIP
unusable for me. I guess it lies in the nature of a simple locking
mechanism to be platform specific, but that makes it "lightweight".

I vote against a removal.

All the best
Peter





reply via email to

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