lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] query about sys_arch_timeouts


From: Kieran Mansley
Subject: [lwip-users] Re: [lwip] query about sys_arch_timeouts
Date: Thu, 09 Jan 2003 02:16:50 -0000

On Wed, 13 Feb 2002, Mumtaz Ahmad wrote:

> hi
> can any body tell about the use and need of sys_arch_timeouts.
> i tried but i just cannot figure out the need and theory behind this
> function

See http://www.sics.se/~adam/lwip/doc/sys_arch.txt

It's not a function you should really need to call yourself, but one that
needs to be implemented if you are porting to a different operating
system.  The operating system emulation layer ("sys_arch") is responsible
for managing threads.  Each thread will have zero or more timeouts that
are associated with it.  These "sys_timeout" structures need to be stored
somewhere, so there is a linked list associated with each thread, and the
sys_arch_timeouts() function returns the list for the current thread to
the caller.  If you're not running in a threaded environment things are
simpler, and there is just one list of timeouts for the whole stack, and
the sys_arch_timeouts() function should return that.

Hope that helps,

Kieran


[This message was sent through the lwip discussion list.]




reply via email to

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