lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] Semaphores and socket.c's event_callback


From: Samuel Thibault
Subject: [lwip-devel] Semaphores and socket.c's event_callback
Date: Thu, 25 Oct 2007 11:33:40 +0100
User-agent: Mutt/1.5.12-2006-07-14

Hello,

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.  Since these are really only critical
sections, here is a patch which makes use of SYS_ARCH_PROTECT() which
doesn't pose such problem.

Samuel

Attachment: patch
Description: Text document


reply via email to

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