riot_sys

Function sema_destroy

Source
pub unsafe extern "C" fn sema_destroy(sema: *mut sema_t)
Expand description

@brief Destroys a semaphore.

@pre (sema != NULL)

@see The Open Group Base Specifications Issue 7, sem_destroy()

Destroying a semaphore upon which other threads are currently blocked will wake the other threads causing the @ref sema_wait (or @ref sema_wait_timed) to return error (-ECANCELED).

@param[in] sema The semaphore to destroy.