[−][src]Function mynewt::kernel::os::os_sem_init
pub unsafe extern "C" fn os_sem_init(
sem: *mut os_sem,
tokens: u16
) -> os_error_t
Initialize a semaphore
sem
: Pointer to semaphore tokens: # of tokens the semaphore should contain initially.
Return: os_error_t OS_INVALID_PARM Semaphore passed in was NULL. OS_OK no error.