1
0
Fork 0
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:
Brian Fiete 2021-06-19 12:35:29 -07:00
parent b83c70e84b
commit d998fe2229
2 changed files with 17 additions and 5 deletions

View file

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