diff options
| author | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
| commit | 11b308e7363e937966b035b4891db32b4eece3bf (patch) | |
| tree | 50ca4c9ad6f163ac4acb2bf505e64dfebed66947 /benchmarks/CUDA/MUM/PoolMalloc.hh | |
| parent | bb820c116764d7a1b8e071137d32b74e7f34dd2f (diff) | |
integrating recent changes from fermi-test into fermi
(i'll use "fermi" for more disruptive changes to the pipeline model such
as updating the MSHRs and getting rid of the warp tracker, ripping out DWF, etc...)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7805]
Diffstat (limited to 'benchmarks/CUDA/MUM/PoolMalloc.hh')
| -rw-r--r-- | benchmarks/CUDA/MUM/PoolMalloc.hh | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/benchmarks/CUDA/MUM/PoolMalloc.hh b/benchmarks/CUDA/MUM/PoolMalloc.hh deleted file mode 100644 index 8fb7733..0000000 --- a/benchmarks/CUDA/MUM/PoolMalloc.hh +++ /dev/null @@ -1,53 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -//! \file -//! \author Adam M Phillippy -//! \date 09/22/2006 -//! -//! \brief PoolMalloc_t header file -//! -//////////////////////////////////////////////////////////////////////////////// - -#ifndef POOLMALLOC_HH -#define POOLMALLOC_HH - -#include <cstdlib> - -struct PoolNode_t; - -//============================================================ PoolMalloc_t ==== -/** \brief Class for allocating memory from a pool - ** Manage memory in pools to speed up allocation of many short strings or - ** arrays. - ** - ** All of the arrays/strings allocated from a given PoolMalloc_t object - ** should share the same lifetime, since they will all be free'd when the - ** object is destroyed. - **/ - -class PoolMalloc_t -{ - -public: - /// Initialize the pool - PoolMalloc_t(); - - /// Free all of the memory associated with this object - ~PoolMalloc_t(); - - /// Explicitly free all of the memory associated with this object - void pfree(); - - /// Allocate an array from the pool - void * pmalloc(size_t size); - - /// Copy a string using memory from the pool - char * pstrdup(const char *s); - -private: - - PoolNode_t *head_m; - -}; - - -#endif // POOLMALLOC_HH |
