diff options
author | lloyd <[email protected]> | 2006-06-25 09:07:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-25 09:07:11 +0000 |
commit | 97529e8854a2e89bc839e013efd2b9b05479c148 (patch) | |
tree | b21d973df70c7734779904e5f8772a7f449f1356 /include/defalloc.h | |
parent | abdd958c0f4b1d880feec5e79230219005e43670 (diff) |
Have allocator objects 'know' their own names, rather than keeping them
around as ancillary strings.
Diffstat (limited to 'include/defalloc.h')
-rw-r--r-- | include/defalloc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/defalloc.h b/include/defalloc.h index ef675d3a8..eb6fd9871 100644 --- a/include/defalloc.h +++ b/include/defalloc.h @@ -17,6 +17,7 @@ class Malloc_Allocator : public Pooling_Allocator { public: Malloc_Allocator() : Pooling_Allocator(64*1024, false) {} + std::string type() const { return "malloc"; } private: void* alloc_block(u32bit); void dealloc_block(void*, u32bit); @@ -29,6 +30,7 @@ class Locking_Allocator : public Pooling_Allocator { public: Locking_Allocator() : Pooling_Allocator(64*1024, true) {} + std::string type() const { return "locking"; } private: void* alloc_block(u32bit); void dealloc_block(void*, u32bit); |