Function psp::sys::sceKernelCreateSema

source ·
#[no_mangle]
pub unsafe extern "C" fn sceKernelCreateSema(
    name: *const u8,
    attr: u32,
    init_val: i32,
    max_val: i32,
    option: *mut SceKernelSemaOptParam
) -> SceUid
Expand description

Creates a new semaphore

§Parameters

  • name: Specifies the name of the sema
  • attr: Sema attribute flags (normally set to 0)
  • init_val: Sema initial value
  • max_val: Sema maximum value
  • option: Sema options (normally set to 0)

§Return Value

A semaphore id