[Top][All Lists]

[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: Gecko/20060909 Firefox/


                 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



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:



Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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