• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/programs/qthread-1.4/include/qt_mpool.h

00001 #ifndef QT_MPOOL_H
00002 #define QT_MPOOL_H
00003 
00004 #include <stddef.h>                    /* for size_t (according to C89) */
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 /* sync means pthread-protected
00013  * allocation_bytes is how many bytes to return
00014  * ...memory is always allocated in multiples of getpagesize() */
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

Generated on Fri Oct 22 2010 11:02:24 for SST by  doxygen 1.7.1