Data Structures
Structure for referencing a fifo.
More...
Typedefs
Structure for referencing a fifo.
More...
Enumerations
Functions
Initialise a osip_fifo_t element.
More...
Insert an element in a fifo (at the beginning).
More...
Get the number of element in a fifo.
More...
Get an element from a fifo or block until one is added.
More...
Try to get an element from a fifo, but do not block if there is no element.
More...
Detailed Description
Typedef Documentation
Enumeration Type Documentation
Function Documentation
#include <osip_fifo.h>
Add an element in a fifo.
- Parameters
-
ff The element to work on.
element The pointer on the element to add.
#include <osip_fifo.h>
Free a fifo element.
- Parameters
-
ff The element to work on.
#include <osip_fifo.h>
Get an element from a fifo or block until one is added.
- Parameters
-
ff The element to work on.
#include <osip_fifo.h>
Initialise a osip_fifo_t element.
NOTE: this element MUST be previously allocated with osip_malloc(). The osip_free() call on the fifo is still automatically done by osip_fifo_free(). This also means you can't use a static osip_fifo_t variable if you want to use osip_fifo_free().
- Parameters
-
ff The element to initialise.
#include <osip_fifo.h>
Insert an element in a fifo (at the beginning).
- Parameters
-
ff The element to work on.
element The pointer on the element to insert.
#include <osip_fifo.h>
Get the number of element in a fifo.
- Parameters
-
ff The element to work on.
#include <osip_fifo.h>
Try to get an element from a fifo, but do not block if there is no element.
- Parameters
-
ff The element to work on.