lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #19222] timeout in sys_mbox_fetch


From: Dmitry Potapov
Subject: [lwip-devel] [bug #19222] timeout in sys_mbox_fetch
Date: Tue, 06 Mar 2007 21:07:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070216 Firefox/1.5.0.10

Follow-up Comment #5, bug #19222 (project lwip):

BTW, who said sys_arch_mbox_fetch() sets `msg' to NULL when it returns
SYS_ARCH_TIMEOUT? I don't think that all ports do that. As result, you can
end up with undefined value in `msg'. Of course, it is easy to fix by adding
*msg = NULL at the beginning... but it just another indication that this
approach is wrong...

In fact, if you look at sys_sem_wait_timeout, it uses sys_timeout() to
implement timeout. So, it would be more consistent to implement
sys_mbox_fetch_timeout() in the same way using sys_timeout().

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19222>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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