Add implementation of threadGetPrioritySelf().

This commit is contained in:
W. Eric Norum
2000-04-28 14:59:51 +00:00
parent eee86b8106
commit 34fca4e872
2 changed files with 11 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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;