ZFFramework
 
Loading...
Searching...
No Matches
ZFMemPool.h File Reference

memory pool More...

#include "ZFCoreMutex.h"

Go to the source code of this file.

Macros

#define ZF_ENV_ZFMEMPOOL_ENABLE
 whether enable memory pool, true by default
 
#define zfpoolNew(T_Type, ...)
 internal use only, for allocating internal types for performance
 
#define zfpoolDelete(obj)
 see zfpoolNew
 
#define zfpoolDeclareFriend()
 use to declare friend if your type has non-public constructors
 

Detailed Description

memory pool

Macro Definition Documentation

◆ zfpoolNew

#define zfpoolNew ( T_Type,
... )

internal use only, for allocating internal types for performance

Warning
pointers passed to zfpoolDelete must be the same with the type you create