|
From: | address@hidden |
Subject: | Re: [lwip-devel] tcpip_send_msg_wait_sem() declaration |
Date: | Tue, 14 May 2019 21:47:15 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Am 13.05.2019 um 08:44 schrieb Joan Lledó:
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()?
Ok, so I don't think there's a problem with making such a function part of the "public" API, but the current name is not good enough for that. Make it something like "tcpip_try_callback_sem" and I'll accept your patch ;-) Regards, Simon
[Prev in Thread] | Current Thread | [Next in Thread] |