Add implementation of threadGetPrioritySelf().
This commit is contained in:
@@ -295,6 +295,11 @@ unsigned int threadGetPriority(threadId id)
|
||||
return threadGetOsiPriorityValue (pri);
|
||||
}
|
||||
|
||||
unsigned int threadGetPrioritySelf(void)
|
||||
{
|
||||
return threadGetPriority((threadId)RTEMS_SELF);
|
||||
}
|
||||
|
||||
void
|
||||
threadSetPriority (threadId id,unsigned int osip)
|
||||
{
|
||||
|
||||
@@ -328,6 +328,12 @@ unsigned int threadGetPriority(threadId id)
|
||||
return(pthreadInfo->osiPriority);
|
||||
}
|
||||
|
||||
unsigned int threadGetPrioritySelf(void)
|
||||
{
|
||||
threadInfo *pthreadInfo = (threadInfo *)pthread_getspecific(getpthreadInfo);
|
||||
return(pthreadInfo->osiPriority);
|
||||
}
|
||||
|
||||
void threadSetPriority(threadId id,unsigned int priority)
|
||||
{
|
||||
threadInfo *pthreadInfo = (threadInfo *)id;
|
||||
|
||||
Reference in New Issue
Block a user