lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Reentrency problem within mem.c module


From: Siva Velusamy
Subject: Re: [lwip-users] Reentrency problem within mem.c module
Date: Thu, 25 Oct 2007 08:21:08 -0700


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.

-Siva

reply via email to

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