svc: added GetThreadPriority and SetThreadPriority, added (incomplete) DuplicateHandle support

This commit is contained in:
bunnei 2014-06-01 22:12:54 -04:00
parent 10447d1f48
commit 3fb31fbc57
3 changed files with 77 additions and 3 deletions

View file

@ -65,6 +65,12 @@ Handle GetCurrentThreadHandle();
/// Put current thread in a wait state - on WaitSynchronization
void WaitThread_Synchronization();
/// Get the priority of the thread specified by handle
u32 GetThreadPriority(const Handle handle);
/// Set the priority of the thread specified by handle
Result SetThreadPriority(Handle handle, s32 priority);
/// Initialize threading
void ThreadingInit();