diff options
Diffstat (limited to 'sbe/sbefw/pool.H')
-rw-r--r-- | sbe/sbefw/pool.H | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sbe/sbefw/pool.H b/sbe/sbefw/pool.H deleted file mode 100644 index bc9b002d..00000000 --- a/sbe/sbefw/pool.H +++ /dev/null @@ -1,35 +0,0 @@ - -#ifndef SBE_VECTOR_POOL_H -#define SBE_VECTOR_POOL_H - -namespace SBEVECTORPOOL -{ - -// Size of a block for a vector -static const size_t G_BLOCKSIZE = 512; - -//Pool size -static const size_t G_POOLSIZE = 4; - -typedef struct -{ - size_t refCount; - uint8_t data[G_BLOCKSIZE] __attribute__ ((aligned (8))); -}vectorMemPool_t; - -/** - * @brief Returns memory pool block. - * - * @return Memory block if available, NULL otherwise. - */ -vectorMemPool_t * allocMem(); - -/** - * @brief Release memory pool block. - * - * @param[in] i_pool pool pointer. - */ -void releaseMem( vectorMemPool_t * i_pool ); - -} // namespace SBEVECTORPOOL -#endif //SBE_VECTOR_POOL_H |