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 [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
