[−][src]Function pspsdk_sys::sdk::sceKernelCreateSema
pub unsafe extern "C" fn sceKernelCreateSema(
name: *const c_char,
attr: SceUInt,
initVal: c_int,
maxVal: c_int,
option: *mut SceKernelSemaOptParam
) -> SceUID
Creates a new semaphore
@par Example: @code int semaid; semaid = sceKernelCreateSema("MyMutex", 0, 1, 1, 0); @endcode
@param name - Specifies the name of the sema @param attr - Sema attribute flags (normally set to 0) @param initVal - Sema initial value @param maxVal - Sema maximum value @param option - Sema options (normally set to 0) @return A semaphore id