lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5453] pbuf patch for SYS_LIGHTWEIGHT_PROT=0


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #5453] pbuf patch for SYS_LIGHTWEIGHT_PROT=0
Date: Thu, 19 Apr 2007 18:29:29 +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

Follow-up Comment #16, patch #5453 (project lwip):

To get back to the original meaning of this patch: we have decided that
SYS_LIGHTWEIGHT_PROT=0 means no protection.

The current pbuf.c implementation locks a task and interrupt context from
concurrent access to pbuf_alloc (in this special case, a variable is enough
as long as interrupts do not pre-empt each other). But it does _not_ lock
pbuf_alloc() against pbuf_free(). Also it uses a semaphore in pbuf_free()
with SYS_LIGHTWEIGHT_PROT=0 (which is the absolute opposite of pbuf_alloc()
:)

So we decided to remove the current SYS_LIGHTWEIGHT_PROT=0 code, since we
said SYS_LIGHTWEIGHT_PROT=0 stands for _no_ locking at all (everything in a
big loop).

I'm attaching a patch for this.

(file #12531)
    _______________________________________________________

Additional Item Attachment:

File name: pbuf_lightweightprot.patch     Size:8 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5453>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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