23 #ifndef OSIP_MONOTHREAD
64 #ifndef OSIP_MONOTHREAD
105 #ifndef OSIP_MONOTHREAD
Structure for referencing a list of elements.
struct osip_sem * qisempty
semaphore for fifo
Structure for referencing a fifo.
int osip_fifo_size(osip_fifo_t *ff)
Get the number of element in a fifo.
void * osip_fifo_tryget(osip_fifo_t *ff)
Try to get an element from a fifo, but do not block if there is no element.
void osip_fifo_free(osip_fifo_t *ff)
Free a fifo element.
oSIP Thread, Mutex and Semaphore definitions
int osip_fifo_insert(osip_fifo_t *ff, void *element)
Insert an element in a fifo (at the beginning).
void * osip_fifo_get(osip_fifo_t *ff)
Get an element from a fifo or block until one is added.
osip_list_t queue
list of nodes containing elements
struct osip_mutex * qislocked
mutex for fifo
int osip_fifo_add(osip_fifo_t *ff, void *element)
Add an element in a fifo.
osip_fifo_state state
state of the fifo
Structure for referencing a semaphore element.
Structure for referencing a mutex element.
void osip_fifo_init(osip_fifo_t *ff)
Initialise a osip_fifo_t element.