lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Can we change sys_arch_sem_wait's timeout meaning?


From: Yonggang Luo
Subject: Re: [lwip-devel] Can we change sys_arch_sem_wait's timeout meaning?
Date: Wed, 21 Jul 2021 20:06:42 +0800



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

reply via email to

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