|
From: | Peter Graf |
Subject: | Re: [lwip-users] sys_timeout handler will not be called |
Date: | Mon, 09 Feb 2004 10:33:48 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 |
Jani Monoses wrote:
Did it crash the whole, or just lock the thread which is communicating at that time? I can confirm the latter (timing-dependent) problem. But other threads continue to work. BTW many thanks to you and Leon for keeping up the work!I'm gussing that a timeout handler (or some functions called from a timeout handler) call sys_sem_wait() again (removed from timeoutssys_sem_wait conditionally calls memp_free which in turn calls sys_sem_wait.... I did some tests on ecos today and until I made sys_timeout use statically allocated timeouts (so not calling memp) it crashed when using lots of timers which fired very quickly.
Peter
[Prev in Thread] | Current Thread | [Next in Thread] |