lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Timeout cases


From: Fabian Cenedese
Subject: [lwip-users] Timeout cases
Date: Tue, 22 Jan 2013 11:47:24 +0100

Hi

I'm a bit unclear about the meaning of the timeout parameter
for the semaphore and mbox functions. Any timeout >0 is
obviously a time in milliseconds. However if timeout==0,
does this mean "don't wait at all" or "wait until done"?

For semaphores it seems that 0==forever (sys_arch_sem_wait).
But for mboxes 0 doesn't seem to have a special meaning
(sys_arch_mbox_(try)fetch). Is there no need to wait with
infinite blocking on an mbox?

I also can't seem to see a difference between fetch
and tryfetch from the description.

Thanks

bye  Fabi




reply via email to

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