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: Jared Grubb
Subject: [lwip-devel] [task #7490] Add return value to sys_mbox_post
Date: Mon, 10 Dec 2007 18:42:49 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

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

(Re #15):

At first I wanted to disagree with Jonathan and Frederic, because in the two
RTOS's I could think of, you could block only on the read side of a message
queue... But it looks like in Linux there is functionality of blocking on the
send side as well.

So, there is precedent for that view. Although, it seems that it will require
sys_arch to allocate an mbox and a semaphore for those RTOS's that cannot
block a send on a message queue.

I think it would be a good exercise to look at all the mbox_post's in the
lwIP code and see whether there is a consistent thing to do on a failed post.
Should it be block? Should it be drop? Should it be sleep+spin until success?

    _______________________________________________________

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]