libCom/osi: Rename osd thread sched policy flag (Fifo -> RealTime)

This commit is contained in:
Ralph Lange
2012-09-17 13:22:09 +02:00
parent a106129c9b
commit 2485c1fb1c
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ typedef struct epicsThreadOSD {
epicsEventId suspendEvent;
int isSuspended;
int isEpicsThread;
int isFifoScheduled;
int isRealTimeScheduled;
int isOnThreadList;
unsigned int osiPriority;
char name[1]; /* actually larger */

View File

@@ -477,7 +477,7 @@ epicsShareFunc epicsThreadId epicsShareAPI epicsThreadCreate(const char *name,
if(pthreadInfo==0) return 0;
pthreadInfo->isEpicsThread = 1;
setSchedulingPolicy(pthreadInfo,SCHED_FIFO);
pthreadInfo->isFifoScheduled = 1;
pthreadInfo->isRealTimeScheduled = 1;
status = pthread_create(&pthreadInfo->tid,&pthreadInfo->attr,
start_routine,pthreadInfo);
if(status==EPERM){
@@ -608,7 +608,7 @@ epicsShareFunc void epicsShareAPI epicsThreadSetPriority(epicsThreadId pthreadIn
return;
}
pthreadInfo->osiPriority = priority;
if(!pthreadInfo->isFifoScheduled) return;
if(!pthreadInfo->isRealTimeScheduled) return;
#if defined (_POSIX_THREAD_PRIORITY_SCHEDULING)
pthreadInfo->schedParam.sched_priority = getOssPriorityValue(pthreadInfo);
status = pthread_attr_setschedparam(

View File

@@ -30,7 +30,7 @@ typedef struct epicsThreadOSD {
epicsEventId suspendEvent;
int isSuspended;
int isEpicsThread;
int isFifoScheduled;
int isRealTimeScheduled;
int isOnThreadList;
unsigned int osiPriority;
char name[1]; /* actually larger */