lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #19167] tcp timeout handler can cause crash being invo


From: Dmitry Potapov
Subject: [lwip-devel] [bug #19167] tcp timeout handler can cause crash being invoked by sys_sem_wait()
Date: Wed, 07 Mar 2007 12:45:37 +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 #24, bug #19167 (project lwip):

I think it is better to define them as macros

#define sys_sem_wait(sem) ((void)sys_arch_sem_wait((sem), 0))
#define sys_sem_wait_timeout(sem, timeout) \
       (sys_arch_sem_wait((sem),(timeout))!=SYS_ARCH_TIMEOUT)

So we avoid call overhead.

But it is not completely solution, because it will increase delays in timeout
handling until sys_mbox_fetch is changed to use 'expires' as I suggested
before... But let's do one step a time...

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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