Added an overridable define to get informed when the tcpip_thread processes messages or timeouts to implement a watchdog.

This commit is contained in:
goldsimon
2010-04-14 07:02:26 +00:00
parent 3347762df3
commit 2e18a9be63
4 changed files with 12 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ tcpip_thread(void *arg)
LOCK_TCPIP_CORE();
while (1) { /* MAIN Loop */
UNLOCK_TCPIP_CORE();
LWIP_TCPIP_THREAD_ALIVE();
/* wait for a message, timeouts are processed while waiting */
sys_timeouts_mbox_fetch(&mbox, (void **)&msg);
LOCK_TCPIP_CORE();