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: Hans Petter Selasky
Subject: Re: [lwip-devel] Can we change sys_arch_sem_wait's timeout meaning?
Date: Wed, 21 Jul 2021 11:44:24 +0200
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

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?

The established poll() interface also use -1 for infinite timeout.

Maybe make a macro for this instead?

--HPS



reply via email to

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