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.
this class is same as PoolBase, except that it avoid using lock and is not thread-safe. One should always use PoolBase, unless the performance matters a lot in single threaded mode.
class Msg : public ParaEngine::PoolBase_SingleThreaded<Msg> { ... };
void func() { boost::shared_ptr<Msg> m(new Msg(...)); m->whatever(); }