lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] tcpip_send_msg_wait_sem() declaration


From: Dirk Ziegelmeier
Subject: Re: [lwip-devel] tcpip_send_msg_wait_sem() declaration
Date: Tue, 14 May 2019 20:23:50 +0200

It only TRIES to post a message. When the MBOX is full, you get an error code as return value instead of blocking the call.


Dirk


On Mon, May 13, 2019 at 8:45 AM Joan Lledó <address@hidden> wrote:
> Would you need to move this to tcpip.h?

Not necessarily, I was looking for a way to call a function inside the
tcpip thread and wait for it to finish. tcpip_send_msg_wait_sem()
seems to be what I need, but maybe there's another way. We could add
another tcpip_callbackmsg* function to wait for the sem in *msg. Why
is tcpip_callbackmsg_trycallback() calling sys_mbox_trypost() instead
of sys_mbox_post()?

_______________________________________________
lwip-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-devel

reply via email to

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