[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Re: Semaphores and socket.c's event_callback
From: |
Samuel Thibault |
Subject: |
[lwip-devel] Re: Semaphores and socket.c's event_callback |
Date: |
Thu, 25 Oct 2007 13:28:58 +0100 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hi,
Simon Goldschmidt wrote:
> > src/api/sockets.c uses a semaphore (selectsem) for protecting
> > critical sections of select(). The result is that event_callback()
> > may want to sleep, which is a problem if one wants to call event_callback()
> > from an interrupt handler for instance.
>
> Calling event_callback from an interrupt handler is not supported!
> ...
> ip_input() would perhaps enter tcp_input() which shares states with
> tcp_output(),
Ah, ok, that probably explains the troubles I've been getting.
Thanks!
Samuel