changeset 1623:b28e83693693

* src/ecos/timeout.c (callout_reset): Clarify assert message on expiry date from ages ago and also add comment explaining further.
author jlarmour
date Fri, 30 Apr 2004 01:13:56 +0000
parents 812bf7d5e7fc
children 877b7c3bf2b8
files packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/ecos/timeout.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog
+++ b/packages/net/bsd_tcpip/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-30  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* src/ecos/timeout.c (callout_reset): Clarify assert message on
+	expiry date from ages ago and also add comment explaining further.
+
 2004-03-30  Horst Kronstorfer  <horst.kronstorfer@frequentis.com>
  
         * src/sys/kern/uipc_mbuf.c
--- a/packages/net/bsd_tcpip/current/src/ecos/timeout.c
+++ b/packages/net/bsd_tcpip/current/src/ecos/timeout.c
@@ -402,8 +402,11 @@ callout_reset(struct callout *c, int del
         for (e = timeouts;  e;  e = e->next) {
             if (e->delta) {
                 CYG_ASSERT( e->delta >= last_delta, "e->delta underflow" );
+                // the following triggers if the "next" timeout has not just
+                // passed, but passed by 1000 ticks - which with the normal
+                // 1 tick = 10ms means 10 seconds - a long time.
                 CYG_ASSERT( last_set_time + e->delta + 1000 > now,
-                            "Recorded alarm not in the future!" );
+                            "Recorded alarm not in the future! Starved network thread?" );
                 if ( e->delta < delta )
                     delta = e->delta;
             } else {