[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:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
URL:
<http://savannah.nongnu.org/patch/?5918>
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
_______________________________________________________
Details:
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
that.
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:
goldsimon
<http://savannah.nongnu.org/patch/download.php?file_id=12713>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5918>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex,
Simon Goldschmidt <=
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Simon Goldschmidt, 2007/05/14
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Jonathan Larmour, 2007/05/14
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Simon Goldschmidt, 2007/05/14
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Frédéric Bernon, 2007/05/14
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Simon Goldschmidt, 2007/05/14
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Frédéric Bernon, 2007/05/14
- [lwip-devel] [patch #5918] memp.c SYS_LIGHTWEIGHT_PROT=0: remove mutex, Simon Goldschmidt, 2007/05/16