From 0d70292d88276a9883ab8bc15b00e6a2e2fe4487 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 29 Oct 1999 12:08:49 +0000 Subject: Events now return a value. If it's non-zero, the event is re-queued for processing in next event cycle. This can be used to prevent background actions (hint: user commands) from hogging the CPU for too long time. --- nest/rt-table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index 0f423f8..353473d 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -395,7 +395,7 @@ rt_dump_all(void) rt_dump(t); } -static void +static int rt_gc(void *unused) { rtable *t; @@ -404,6 +404,7 @@ rt_gc(void *unused) rt_prune_all(); rt_last_gc = now; rt_gc_counter = 0; + return 0; } void -- cgit v1.2.3