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: goldsimon
Subject: [lwip-devel] [patch #5453] pbuf patch for SYS_LIGHTWEIGHT_PROT=0
Date: Wed, 11 Oct 2006 09:43:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

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

                 Summary: pbuf patch for SYS_LIGHTWEIGHT_PROT=0
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Mittwoch 11.10.2006 um 09:43
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

If SYS_LIGHTWEIGHT_PROT is defined to 0, pbuf_pool_alloc() and
pbuf_pool_free() are not locked against each other.
This patch fixes this by using one semaphore to lock all pbuf operations.

Also, the current locking implementation in pbuf_pool_alloc() is using simple
variables and is thus not thread-safe.

ATTENTION: At least for me, using SYS_LIGHTWEIGHT_PROT=0 produces dead-locks
if tcpip_tcp_timer() is active. When creating a seperate thread (or timer
thread) for this timer, everything works fine.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mittwoch 11.10.2006 um 09:43  Name: pbuf_sem.patch  Size: 5kB   By:
goldsimon

<http://savannah.nongnu.org/patch/download.php?file_id=10944>

    _______________________________________________________

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]