[Top][All Lists]

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

Re: [lwip-devel] tcpip_send_msg_wait_sem() declaration

From: Joan Lledó
Subject: Re: [lwip-devel] tcpip_send_msg_wait_sem() declaration
Date: Fri, 17 May 2019 20:03:26 +0200

> I rather thought you'd need a new function with that name. Looking at
> what tcpip_send_msg_wait_sem() does, I don't think it's what you need?
> The 'sem' is not a semaphore that should be signaled when it's done, but
> a semaphore that tcpip_send_msg_wait_sem() uses to block before return...

Oh no, I only need to call a function inside the tcpip thread and wait
for it to return, tcpip_send_msg_wait_sem() does it so it's enough for
me. Moreover, when LWIP_TCPIP_CORE_LOCKING is enabled, you don't even
need a semaphore, so it's a lot easier to use.

reply via email to

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