// SDK location: /user/pspthreadman.h:399 // SDK declaration: int sceKernelReleaseWaitThread(SceUID thid); public int sceKernelReleaseWaitThread(int thid) { KThread thread = _kernel.GetHandle <KThread>(thid); if (thread == null) { return(-1); } if ((thread.State == KThreadState.Waiting) || (thread.State == KThreadState.WaitSuspended)) { thread.ReleaseWait(); _kernel.Schedule(); return(0); } else { return(unchecked (( int )0x800201A6)); } }