Function ctru_sys::svcCreateSemaphore
source · pub unsafe extern "C" fn svcCreateSemaphore(
semaphore: *mut Handle,
initial_count: s32,
max_count: s32
) -> Result
Expand description
Creates a semaphore.
§Arguments
semaphore
(direction out) - Pointer to output the handle of the created semaphore to.initial_count
- Initial count of the semaphore.max_count
- Maximum count of the semaphore.