Function psp::sys::sceKernelWaitSemaCB

source ·
#[no_mangle]
pub unsafe extern "C" fn sceKernelWaitSemaCB(
    sema_id: SceUid,
    signal: i32,
    timeout: *mut u32
) -> i32
Expand description

Lock a semaphore a handle callbacks if necessary.

§Parameters

  • sema_id: The sema id returned from sceKernelCreateSema
  • signal: The value to wait for (i.e. if 1 then wait till reaches a signal state of 1)
  • timeout: Timeout in microseconds (assumed).

§Return Value

< 0 on error.