2008/9/9 Nick Thomas <[EMAIL PROTECTED]>

>
>
> 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!


If i understood your problem.... see my sys_arch attached in
the previous mail...
The first call to sys_create_thread, will call sys_init if you didn't call
it before!
I works in this way:
- create a first lwip task using sys_create_thread (so, sys_arch_timeout
will be initialized)
- this task will initialize the stack (so, will start tcpip_thread) and will
start other lwip threads

bye
Piero
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to