mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Thread priority fixes
This commit is contained in:
parent
b83c70e84b
commit
d998fe2229
2 changed files with 17 additions and 5 deletions
|
@ -53,12 +53,12 @@ void Thread::SetJoinOnDelete(bool joinOnDelete)
|
|||
|
||||
int Thread::GetPriorityNative()
|
||||
{
|
||||
return (int)BfpThread_GetPriority(GetInternalThread()->mThreadHandle, NULL);
|
||||
return (int)BfpThread_GetPriority(GetInternalThread()->mThreadHandle, NULL) + 2;
|
||||
}
|
||||
|
||||
void Thread::SetPriorityNative(int priority)
|
||||
{
|
||||
return BfpThread_SetPriority(GetInternalThread()->mThreadHandle, (BfpThreadPriority)priority, NULL);
|
||||
return BfpThread_SetPriority(GetInternalThread()->mThreadHandle, (BfpThreadPriority)(priority - 2), NULL);
|
||||
}
|
||||
|
||||
bool Thread::GetIsAlive()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue