|
From: | Simon Goldschmidt |
Subject: | Re: [lwip-users] Reentrency problem within mem.c module |
Date: | Thu, 25 Oct 2007 17:26:38 +0200 |
Am 25.10.2007 um 17:21 schrieb Siva Velusamy:
The solution of this problem, once found was simply to add SYS_ARCH_PROTECT protection mechanism as an alternative to sys_sem_xxx function already present. The generic form is :#if SYS_LIGHTWEIGHT_PROT SYS_ARCH_PROTECT(level) #else sys_sem_wait(mem_sem) #endif /* SYS_LIGHTWEIGHT_PROT */I want to have your advice to known if it's something that must be corrected (I believe so), or left as is.Yes, you need to have SYS_ARCH_PROTECT properly defined if you do not implement the sys_arch layer.
mem_malloc() does't use the SYS_ARCH_PROTECT macros, so in this case, this doesn't help
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |