On 14.03.2018 17:09, Giuseppe Modugno wrote:
#define MEM_LIBC_MALLOC   1

If I try to set MEMP_MEM_MALLOC, I have some strange problems.

I suspect threading issues. I checked on win32 and it seems to work fine. In the end, there's not really much lwIP does here, everything is delegated to your C library's malloc code. Maybe that code isn't thread-safe? In that case, you need to define mem_clib_*() to wrapper functions that protect the heap.

Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to