[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tight
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated |
Date: |
Wed, 11 Apr 2007 02:05:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8 |
Follow-up Comment #11, bug #1902 (project lwip):
I think most systems use free-running timers for clocks where possible. I
think you have to assume the OS clock is accurate - what else can you do!
I would mention here that the lwip internal thread is not the only one that
uses timeouts, other than applications. So does the PPP thread. Also
lwip_select() relies on semaphore waits with timeouts.
But there is one thing that from people's comments here I'm not sure is well
known..... timeouts are meant to be per-thread. They are not global. If a
timeout is set, its callback should only be by that same thread, not any
thread. All this talk about thread safety makes me think that some people are
allowing their ports to have timeout functions called by any thread.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?1902>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated,
Jonathan Larmour <=
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Simon Goldschmidt, 2007/04/11
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Kieran Mansley, 2007/04/11
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Jonathan Larmour, 2007/04/11
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Simon Goldschmidt, 2007/04/20
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Jonathan Larmour, 2007/04/20
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Kieran Mansley, 2007/04/23
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Simon Goldschmidt, 2007/04/26
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Jonathan Larmour, 2007/04/26
- [lwip-devel] [bug #1902] Timeouts and semaphores/mailboxes are too tightly integrated, Simon Goldschmidt, 2007/04/27