On Wed, Jul 21, 2021 at 5:44 PM Hans Petter Selasky <
hps@selasky.org> wrote:
>
> On 7/5/21 12:11 PM, 罗勇刚(Yonggang Luo) wrote:
> > In most os, timeout == 0 means waiting no time
> > timeout ==-1 means wait infinite.
> > Or we added a new API and deprecating sys_arch_sem_wait?
>
> Hi,
>
> Can you tell more about which OS uses 0 for infinite timeout?
Most OS use 0 for zero timeout(no wait).
But in lwip, sys_arch_sem_wait(0) means
infinite
timeout
>
> The established poll() interface also use -1 for infinite timeout.
>
> Maybe make a macro for this instead?
>
> --HPS
--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo