aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Config/dotconfpp/mempool.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 15:35:07 -0700
committermaximius <none@none>2009-10-17 15:35:07 -0700
commit26b5e033ffde3d161382fc9addbfa99738379641 (patch)
treea344f369ca32945f787a02dee35c3dbe342bed7e /src/shared/Config/dotconfpp/mempool.h
parentf21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff)
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
Diffstat (limited to 'src/shared/Config/dotconfpp/mempool.h')
-rw-r--r--src/shared/Config/dotconfpp/mempool.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/shared/Config/dotconfpp/mempool.h b/src/shared/Config/dotconfpp/mempool.h
index 81c01d15a58..6bf71eb6b54 100644
--- a/src/shared/Config/dotconfpp/mempool.h
+++ b/src/shared/Config/dotconfpp/mempool.h
@@ -1,17 +1,13 @@
-
#ifndef ASYNC_DNS_MEMPOOL_H
#define ASYNC_DNS_MEMPOOL_H
-
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-
#undef free
#undef calloc
#undef strdup
-
class AsyncDNSMemPool
{
private:
@@ -19,29 +15,23 @@ private:
void * pool;
size_t pos;
size_t size;
-
PoolChunk(size_t _size);
~PoolChunk();
};
PoolChunk ** chunks;
size_t chunksCount;
size_t defaultSize;
-
size_t poolUsage;
size_t poolUsageCounter;
-
void addNewChunk(size_t size);
-
public:
AsyncDNSMemPool(size_t _defaultSize = 4096);
virtual ~AsyncDNSMemPool();
-
int initialize();
void free();
void * alloc(size_t size);
void * calloc(size_t size);
char * strdup(const char *str);
};
-
#endif