lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT


From: Simon Goldschmidt
Subject: Re: [lwip-users] LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
Date: Tue, 11 Oct 2022 06:25:24 +0200
User-agent: K-9 Mail for Android


Am 10. Oktober 2022 18:32:15 MESZ schrieb Giuseppe Modugno 
<giuseppe.modugno.loqed@gmail.com>:
>I'm sorry to post again.
>
>I just understood LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEX is used in mem.c for 
>MEM_USE_POOLS=0 and MEM_LIBC_MALLOC=0 (default lwip heap management from a 
>statically allocated buffer).
>
>What about the reentrancy of memory pools? What happens when MEM_USE_POOLS=1 
>and pbuf_free is called in ISR, with or without 
>LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT? It seems memory pools free is safe to 
>be used from ISR, because I don't see any protection for them (differently of 
>lwip default dynamic allocator).

Yes, it is.

Regards,
Simon



reply via email to

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