[Top][All Lists]

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

[lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex

From: Simon Goldschmidt
Subject: [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex
Date: Mon, 07 May 2007 20:01:23 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20070309 Firefox/


                 Summary: memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Montag 07.05.2007 um 20:01
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



To comply to pbuf.c, we must remove the mutexes from memp.c when
SYS_LIGHTWEIGHT_PROT=0. Old bug/patch entries show that mutex protection was
there befor lightweight protection and lightweight protection was introduced
so that netif drivers can allocate pbufs in interrupt context.

Thus, in my opinion, the mutex is obsolete. If someone still wants protection
through a mutex (which I doubt), they can define SYS_ARCH_PROTECT() to do

If no protection at all is needed (as in pbuf.c with SYS_ARCH_PROTECT=0), we
also don't need mutexes.


File Attachments:

Date: Montag 07.05.2007 um 20:01  Name: memp.c_nomutex.patch  Size: 2kB   By:



Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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