lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LWIP infinite loop - system watchdog implementation


From: Piero 74
Subject: Re: [lwip-users] LWIP infinite loop - system watchdog implementation
Date: Tue, 29 Apr 2008 18:25:33 +0200

i'll check deeply lwip code... you are right! i used your idea! Thanks

Piero

2008/4/24 address@hidden <address@hidden>:
Piero 74 wrote:
LWIP has its task (tcpip thread - i'm using socket), and i saw that this task can block forever trought functions in sys_arch.c sys_arch_sem_wait and sys_arch_mbox_fetch.
I implemented these functions putting a macro functions inside a infinite loop (execute if timeout parameter is 0).
Why don't you simply use sys_timeout to get your triggering function called periodically? It puts a callback on a list which is processed by sys_sem_wait() before calling sys_arch_sem_wait(). Normally, sys_arch_sem_wait() will never be called with infinite timeout from tcpip_thread, there are always timeouts running. Look at tcpip.c for examples how to use it.


Simon


_______________________________________________
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]