#include "tll_common.h"
#include "bufferPool.h"
Include dependency graph for bufferPool.c:

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. | |
| 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 |
1.4.7