From 0e889c52542508dd49433bed1785072cb7799009 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 3 Mar 1999 20:40:51 +0000 Subject: Added a hack forcing protocols with priority>0 to be started up immediately. Grrr, need to find a real solution some day. --- nest/proto.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index 76120fa..cbafeb3 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -319,6 +319,12 @@ proto_notify_state(struct proto *p, unsigned ps) ASSERT(ops == PS_DOWN || ops == PS_START); ASSERT(cs == FS_HUNGRY); DBG("%s: Scheduling meal\n", p->name); + if (p->proto->priority) /* FIXME: Terrible hack to get synchronous device/kernel startup! */ + { + p->core_state = FS_FEEDING; + proto_feed(p); + return; + } cs = FS_FEEDING; p->attn->hook = proto_feed; ev_schedule(p->attn); -- cgit v1.2.3