implement threadGetPrioritySelf
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user