[Top][All Lists]

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

[lwip-devel] [task #7490] Add return value to sys_mbox_post

From: Simon Goldschmidt
Subject: [lwip-devel] [task #7490] Add return value to sys_mbox_post
Date: Mon, 26 Nov 2007 17:09:08 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20071025 Firefox/

Follow-up Comment #6, task #7490 (project lwip):

> I actually have a problem with this: I get the network packets 
> from an interrupt handler, which is not allowed to wait, and I've 
> currently no way to let the interrupt handler know that it 
> shouldn't call tcpip_input but just drop the packet. 

If not solving this with giving sys_mbox_post a return value, we could always
implement a counter that sets a limit on the packet-input mbox. That way,
sys_mbox_post can assert if the mbox is full.

I don't think waiting until there is free space in the mbox is the correct
implmementation: What if a UDP/TCP recv mbox is full but the application has
different things to do than receiving data? This would block the whole
tcpip_thread. So asserting should be the correct thing to do, but that can be
left out in a release build! :-(


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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