00001 #ifndef QT_MPOOL_H
00002 #define QT_MPOOL_H
00003
00004 #include <stddef.h>
00005
00006 typedef struct qt_mpool_s *qt_mpool;
00007
00008 void *qt_mpool_alloc(qt_mpool pool);
00009
00010 void qt_mpool_free(qt_mpool pool, void *mem);
00011
00012
00013
00014
00015 qt_mpool qt_mpool_create(const int sync, size_t item_size, const int node);
00016
00017 qt_mpool qt_mpool_create_aligned(const int sync, size_t item_size,
00018 const int node, const size_t alignment);
00019 void qt_mpool_destroy(qt_mpool pool);
00020
00021 #endif