[][src]Function pspsdk_sys::sdk::sceKernelChangeThreadPriority

pub unsafe extern "C" fn sceKernelChangeThreadPriority(
    thid: SceUID,
    priority: c_int
) -> c_int

Change the threads current priority.

@param thid - The ID of the thread (from sceKernelCreateThread or sceKernelGetThreadId) @param priority - The new priority (the lower the number the higher the priority)

@par Example: @code int thid = sceKernelGetThreadId(); // Change priority of current thread to 16 sceKernelChangeThreadPriority(thid, 16); @endcode

@return 0 if successful, otherwise the error code.