[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: Gecko/20071025 Firefox/

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

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:


  Message posté via/par Savannah

reply via email to

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