Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
fifo.h File Reference
#include <Inventor/C/basic.h>
#include <Inventor/C/threads/common.h>

Go to the source code of this file.

Functions

cc_fifocc_fifo_new (void)
 
void cc_fifo_delete (cc_fifo *fifo)
 
void cc_fifo_assign (cc_fifo *fifo, void *ptr, uint32_t type)
 
void cc_fifo_retrieve (cc_fifo *fifo, void **ptr, uint32_t *type)
 
SbBool cc_fifo_try_retrieve (cc_fifo *fifo, void **ptr, uint32_t *type)
 
unsigned int cc_fifo_size (cc_fifo *fifo)
 
void cc_fifo_lock (cc_fifo *fifo)
 
void cc_fifo_unlock (cc_fifo *fifo)
 
SbBool cc_fifo_peek (cc_fifo *fifo, void **item, uint32_t *type)
 
SbBool cc_fifo_contains (cc_fifo *fifo, void *item)
 
SbBool cc_fifo_reclaim (cc_fifo *fifo, void *item)
 

Function Documentation

◆ cc_fifo_new()

cc_fifo* cc_fifo_new ( void  )

Constructs a new first-in, first-out queue.

◆ cc_fifo_delete()

void cc_fifo_delete ( cc_fifo fifo)

Destroys the fifo first-in, first-out queue.

◆ cc_fifo_assign()

void cc_fifo_assign ( cc_fifo fifo,
void *  ptr,
uint32_t  type 
)

Appends the ptr of type type to the end of the fifo first-in, first-out queue.

◆ cc_fifo_retrieve()

void cc_fifo_retrieve ( cc_fifo fifo,
void **  ptr,
uint32_t *  type 
)

Retrieves the first item from the fifo first-in, first-out queue.

◆ cc_fifo_try_retrieve()

SbBool cc_fifo_try_retrieve ( cc_fifo fifo,
void **  ptr,
uint32_t *  type 
)

Checks the fifo first-in, first-out queue to see if an item can be retrieved. If so the properties of the first available item are returned.

◆ cc_fifo_size()

unsigned int cc_fifo_size ( cc_fifo fifo)

Returns the number of elements in the fifo first-in, first-out queue.

◆ cc_fifo_lock()

void cc_fifo_lock ( cc_fifo fifo)

Locks the fifo first-in, first-out queue.

◆ cc_fifo_unlock()

void cc_fifo_unlock ( cc_fifo fifo)

Unlocks the fifo first-in, first-out queue.

◆ cc_fifo_peek()

SbBool cc_fifo_peek ( cc_fifo fifo,
void **  item,
uint32_t *  type 
)

Returns the properties of the first item in the fifo first-in, first-out queue.

◆ cc_fifo_contains()

SbBool cc_fifo_contains ( cc_fifo fifo,
void *  itemptr 
)

Checks if the fifo first-in, first-out queue contains the itemptr item.

◆ cc_fifo_reclaim()

SbBool cc_fifo_reclaim ( cc_fifo fifo,
void *  itemptr 
)

Removes from the fifo first-in, first-out queue the itemptr item if present.