My Project
|
if one wants to create and delete many objects of the same type per frame, derive your class from PoolBase. More...
#include <PoolBase.h>
Static Public Member Functions | |
static void * | operator new (size_t size) |
static void | operator delete (void *p) |
if one wants to create and delete many objects of the same type per frame, derive your class from PoolBase.
[thread safe] Example: class Msg : public ParaEngine::PoolBase<Msg> { ... };
void func() { boost::shared_ptr<Msg> m(new Msg(...)); m->whatever(); }