[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: |
Frédéric Bernon |
Subject: |
[lwip-devel] [task #7490] Add return value to sys_mbox_post |
Date: |
Mon, 26 Nov 2007 20:43:13 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 |
Follow-up Comment #10, task #7490 (project lwip):
>- multiple places in api_msg.c: conn->mbox (used like semaphore -> we could
convert it to a semaphore!) should not block, since tcpip_thread would be
blocked
Agree, and it reduce a little bit the need of a "size" parameter for
sys_mbox_new. But if we change sys_mbox_new, I really would like to add this
size parameter, in the same idea that we have add "name" and "stacksize" to
sys_thread_new (port maintainer could decide to ignore them).
>We would need a flag (block or don't block) and a return value for that. Or
we only take the return value and never block...
Why not another function (in the same spirit we have add
sys_arch_mbox_tryfetch)? For a non-blocking function, error codes could be
ERR_OK if it post the message, or something like ERR_WOULDBLOCK or ERR_RETRY
?
But, is it something for 1.3.0, or post-1.3.0 ?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?7490>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, (continued)
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Samuel Thibault, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Jared Grubb, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Samuel Thibault, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post,
Frédéric Bernon <=
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Jonathan Larmour, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/27
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Kieran Mansley, 2007/11/27