From 324d9f4bc1e5e31a1f2cdeb8a87a23ab1e0ae81a Mon Sep 17 00:00:00 2001 From: koennecke Date: Wed, 25 Jan 2017 11:53:49 +0100 Subject: [PATCH] Fixed up SICS task priorities --- ease.c | 2 +- pardef.c | 2 +- polterwrite.c | 2 +- sinq.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ease.c b/ease.c index 48e0a6e..5f1fa6e 100644 --- a/ease.c +++ b/ease.c @@ -840,7 +840,7 @@ static int EaseInit(SConnection * pCon, EaseBase * eab, int argc, eab->task = FsmStartTask(eab, eab->handler, eab->idle, eab->p.name); TaskRegisterN(pServ->pTasker,"ease", (TaskFunc) FsmTaskHandler, NULL, FsmKill, - eab->task, 0); + eab->task, TASK_PRIO_LOW); return 1; } diff --git a/pardef.c b/pardef.c index 4af35cf..216d908 100644 --- a/pardef.c +++ b/pardef.c @@ -1088,7 +1088,7 @@ void ParOut(char *buf) buf); if (!ctx->obj->logPending) { ctx->obj->logPending = 1; - TaskRegisterN(pServ->pTasker,"parlog", ParLog, NULL, NULL, ctx->obj, 0); /* schedule ParLog */ + TaskRegisterN(pServ->pTasker,"parlog", ParLog, NULL, NULL, ctx->obj, TASK_PRIO_LOW); /* schedule ParLog */ } break; case PAR_LOG: diff --git a/polterwrite.c b/polterwrite.c index 885bda3..628adef 100644 --- a/polterwrite.c +++ b/polterwrite.c @@ -71,7 +71,7 @@ static int Countstartcallback(int iEvent, void *pEventData, void *pUser) self->iEnd = 0; self->tUpdate = time(NULL); self->pCon = (SConnection *) pEventData; - TaskRegisterN(pServ->pTasker,"POLDIUpdater", PoldiTask, NULL, NULL, self, 1); + TaskRegisterN(pServ->pTasker,"POLDIUpdater", PoldiTask, NULL, NULL, self, TASK_PRIO_LOW); return 1; } return 1; diff --git a/sinq.c b/sinq.c index 5703f49..c6879c2 100644 --- a/sinq.c +++ b/sinq.c @@ -125,7 +125,7 @@ int SinqFactory(SConnection * pCon, SicsInterp * pSics, for (i = 0; i < MAXLOG; i++) { pNew->lastSinq[i] = -200; } - TaskRegisterN(pServ->pTasker,"sinq", SinqTask, NULL, NULL, pNew, 1); + TaskRegisterN(pServ->pTasker,"sinq", SinqTask, NULL, NULL, pNew, TASK_PRIO_LOW); return AddCommand(pSics, "sinq", SinqWrapper, KillSinq, pNew); }