diff --git a/src/libCom/error/errlog.c b/src/libCom/error/errlog.c index 4a4e02588..15c73a63b 100644 --- a/src/libCom/error/errlog.c +++ b/src/libCom/error/errlog.c @@ -314,7 +314,7 @@ static void errlogInitPvt(void *arg) /*Allow an extra MAX_MESSAGE_SIZE for extra margain of safety*/ pbuffer = pvtCalloc(pvtData.buffersize+MAX_MESSAGE_SIZE,sizeof(char)); pvtData.pbuffer = pbuffer; - tid = threadCreate("errlog",threadPriorityLow, + tid = threadCreate("errlog",threadPriorityChannelAccessServer-2, threadGetStackSize(threadStackSmall), (THREADFUNC)errlogTask,0); if(tid) pvtData.errlogInitFailed = FALSE; diff --git a/src/libCom/taskwd/taskwd.c b/src/libCom/taskwd/taskwd.c index 02ef0d06f..5f01a062e 100644 --- a/src/libCom/taskwd/taskwd.c +++ b/src/libCom/taskwd/taskwd.c @@ -72,7 +72,8 @@ static void taskwdInitPvt(void *arg) ellInit(&list); ellInit(&anylist); taskwdid = threadCreate( - "taskwd",threadPriorityLow,threadGetStackSize(threadStackSmall), + "taskwd",threadPriorityChannelAccessServer-2, + threadGetStackSize(threadStackSmall), (THREADFUNC)taskwdTask,0); } void epicsShareAPI taskwdInit() diff --git a/src/rsrv/caservertask.c b/src/rsrv/caservertask.c index aa36864f4..f52281d84 100644 --- a/src/rsrv/caservertask.c +++ b/src/rsrv/caservertask.c @@ -140,9 +140,6 @@ struct client *create_client (SOCKET sock) struct client *client; int true = TRUE; int addrSize; - unsigned selfPriority; - unsigned below; - threadBoolStatus tbs; /* * see TCP(4P) this seems to make unsolicited single events much @@ -230,14 +227,8 @@ struct client *create_client (SOCKET sock) return NULL; } - selfPriority = threadGetPrioritySelf (); - tbs = threadHighestPriorityLevelBelow (selfPriority, &below); - if ( tbs != tbsSuccess ) { - below = selfPriority; - } - status = db_start_events ( client->evuser, "CAS-event", - NULL, NULL, below ); + NULL, NULL, threadPriorityChannelAccessServer-1 ); if (status != DB_EVENT_OK) { errlogPrintf("CAS: unable to start the event facility\n"); destroy_client (client); @@ -343,7 +334,7 @@ LOCAL int req_server (void) threadSleep(15.0); continue; } - id = threadCreate ("CAS-client", threadPriorityChannelAccessClient, + id = threadCreate ("CAS-client", threadPriorityChannelAccessServer, threadGetStackSize (threadStackBig), (THREADFUNC)camsgtask, (void *)pClient); if (id==0) { @@ -373,12 +364,12 @@ epicsShareFunc int epicsShareAPI rsrv_init (void) pCaBucket = NULL; threadCreate ("CAS-TCP", - threadPriorityChannelAccessServer, + threadPriorityChannelAccessServer-2, threadGetStackSize(threadStackMedium), (THREADFUNC)req_server,0); threadCreate ("CAS-UDP", - threadPriorityChannelAccessServer-1, + threadPriorityChannelAccessServer-3, threadGetStackSize(threadStackMedium), (THREADFUNC)cast_server,0);