The qDecoder Project

_Q_QUEUE Struct Reference

Structure for array-based circular-queue data structure. More...


Data Fields

Q_MUTEX_T qmutex
int max
int used
int head
int tail
size_t objsize
void * objarr
bool(* push )(Q_QUEUE *queue, const void *object)
void *(* popFirst )(Q_QUEUE *queue, bool remove)
void *(* popLast )(Q_QUEUE *queue, bool remove)
int(* getNum )(Q_QUEUE *queue)
int(* getAvail )(Q_QUEUE *queue)
void(* truncate )(Q_QUEUE *queue)
void(* free )(Q_QUEUE *queue)
void(* donothing )(Q_QUEUE *queue)


Detailed Description

Structure for array-based circular-queue data structure.


Field Documentation

Q_MUTEX_T _Q_QUEUE::qmutex

only used if compiled with --enable-threadsafe option

int _Q_QUEUE::max

maximum queue slots

int _Q_QUEUE::used

used queue slots

int _Q_QUEUE::head

head pointer

int _Q_QUEUE::tail

tail pointer

size_t _Q_QUEUE::objsize

object size

void* _Q_QUEUE::objarr

queue data memory pointer


The documentation for this struct was generated from the following file:

Copyright (c) 2000-2010 The qDecoder Project