Commit 324d9f4b authored by koennecke's avatar koennecke
Browse files

Fixed up SICS task priorities

parent 5ed400e2
......@@ -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;
}
......
......@@ -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:
......
......@@ -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;
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment