[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: |
Jonathan Larmour |
Subject: |
[lwip-devel] [task #7490] Add return value to sys_mbox_post |
Date: |
Fri, 07 Dec 2007 13:54:46 +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 #15, task #7490 (project lwip):
I just realised that while I said it's up to the caller to decide what to do
if the call fails, blocking is difficult. Unless you always accompany an mbox
by a semaphore, there's no way for the caller to block waiting for space to
appear in the mbox.
So I think as per Frederic's comment #10, having two functions, sys_mbox_post
(which blocks) and sys_mbox_trypost (which doesn't, and instead returns an
error code as needed), and the caller can choose which behaviour they want.
Since it is likely the implementations of these functions are mostly the same
code (either in sys_arch or the OS) this shouldn't be that bad for code
space.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?7490>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #7490] Add return value to sys_mbox_post,
Jonathan Larmour <=