#include "queue.h"
#include "isrDisp.h"
#include <chunk.h>
Include dependency graph for bufferPool.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | bufferPool_t |
bufferPool object More... | |
Defines | |
#define | CHUNK_NUM_MAX (32) |
maximum number of chunks managed in this bufffer pool since we use static allocation, one number for all | |
Functions | |
int | bufferPool_init (bufferPool_t *pThis) |
Initialize buffer pool
| |
int | bufferPool_acquire (bufferPool_t *pThis, chunk_t **ppChunk) |
Get a chunk from the buffer pool. | |
int | bufferPool_release (bufferPool_t *pThis, chunk_t *pChunk) |
Release chunk into the free list
| |
int | bufferPool_is_empty (bufferPool_t *pThis) |
Returns true if buffer pool is empty. |
Target: TLL6537v1-1 Compiler: VDSP++ Output format: VDSP++ "*.dxe"
#define CHUNK_NUM_MAX (32) |
maximum number of chunks managed in this bufffer pool since we use static allocation, one number for all
int bufferPool_acquire | ( | bufferPool_t * | pThis, | |
chunk_t ** | ppChunk | |||
) |
Get a chunk from the buffer pool.
Parameters:
pThis | pointer to queue data structure | |
ppChunk | pointer pointer to chunk acquired (null if empty) |
int bufferPool_init | ( | bufferPool_t * | pThis | ) |
Initialize buffer pool
Parameters:
pThis | pointer to buffer pool data structure |
int bufferPool_is_empty | ( | bufferPool_t * | pThis | ) |
Returns true if buffer pool is empty.
Parameters:
pThis | pointer to queue data structure |
int bufferPool_release | ( | bufferPool_t * | pThis, | |
chunk_t * | pChunk | |||
) |
Release chunk into the free list
Parameters:
pThis | pointer to queue data structure | |
pChunk | pointer to chunk to release |