implement threadGetPrioritySelf

This commit is contained in:
Marty Kraimer
2000-04-28 15:50:16 +00:00
parent 34fca4e872
commit 0464f03415
2 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -330,8 +330,7 @@ unsigned int threadGetPriority(threadId id)
unsigned int threadGetPrioritySelf(void)
{
threadInfo *pthreadInfo = (threadInfo *)pthread_getspecific(getpthreadInfo);
return(pthreadInfo->osiPriority);
return(threadGetPriority(threadGetIdSelf()));
}
void threadSetPriority(threadId id,unsigned int priority)
+5
View File
@@ -165,6 +165,11 @@ unsigned int threadGetPriority(threadId id)
return(getOsiPriorityValue(priority));
}
unsigned int threadGetPrioritySelf(void)
{
return(threadGetPriority(threadGetIdSelf()));
}
void threadSetPriority(threadId id,unsigned int osip)
{
int tid = (int)id;