mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 00:40:58 +01:00
svc: Cleanup svcGetThreadPriority.
This commit is contained in:
parent
283c63645d
commit
001091fa72
1 changed files with 5 additions and 3 deletions
|
@ -149,10 +149,12 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the priority for the specified thread
|
/// Gets the priority for the specified thread
|
||||||
static ResultCode GetThreadPriority(s32* priority, Kernel::Handle handle) {
|
static ResultCode GetThreadPriority(u32* priority, Handle handle) {
|
||||||
LOG_TRACE(Kernel_SVC, "called, handle=0x%08X", handle);
|
|
||||||
const SharedPtr<Kernel::Thread> thread = Kernel::g_handle_table.Get<Kernel::Thread>(handle);
|
const SharedPtr<Kernel::Thread> thread = Kernel::g_handle_table.Get<Kernel::Thread>(handle);
|
||||||
*priority = thread ? thread->GetPriority() : 0;
|
if (!thread)
|
||||||
|
return ERR_INVALID_HANDLE;
|
||||||
|
|
||||||
|
*priority = thread->GetPriority();
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue