lwip-devel
[Top][All Lists]
Advanced

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

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


From: Jonathan Larmour
Subject: [lwip-devel] [task #7490] Add return value to sys_mbox_post
Date: Mon, 10 Dec 2007 19:24:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070530 Fedora/1.5.0.12-1.fc5 Firefox/1.5.0.12

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

I agree for blocking versus non-blocking, although arguably tcpip_input may
as well free the pbuf itself.

tcpip_callback is indeed a bit of a dilemma. Personally I'd use it more from
interrupt context than otherwise, but it's possible to think of situations
when it needs to be reliable i.e. blocking. We could make two versions, but to
be honest, I think it's best just to make it non-blocking with error code if
blocked, and let the caller decide. Worst case they just loop polling it, or
loop sleeping and polling it. 

If we find people wanting a blocking version in future it's easy to add.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7490>

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





reply via email to

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