Function riot_sys::sema_create

source ·
pub unsafe extern "C" fn sema_create(sema: *mut sema_t, value: c_uint)
Expand description

@brief Creates semaphore dynamically.

@pre (sema != NULL)

@see The Open Group Base Specifications Issue 7, sem_init() (without pshared parameter)

@param[out] sema The created semaphore. @param[in] value Initial value for the semaphore.