lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] sys_timeout firing too often.


From: Nick Thomas
Subject: RE: [lwip-users] sys_timeout firing too often.
Date: Tue, 9 Sep 2008 18:08:25 +0100


Hi, Well I made some progress.
I added the array of task structs, and an array of struct sys_timeouts as
suggested to sys_arch.c. This has improved things immensely.
But, there is still an anomaly.

The first sys_timeout() call is done from the 'root' thread, which isn't
created by any of the task_create functions in sys_arch.c.
So, when sys_arch_timeouts() loops through to find the appropriate task
struct, it doesn't find one!

For now, if it fails to find the right array, it simply defaults to the
first in the list. This is better than returning NULL as the timeout
handlers would never be called for that timer.

There must be a better way though!

Regards

Nick


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users





reply via email to

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