Central memory cache. Second level of memory allocator. More...
#include <CentralCache.h>
Public Member Functions | |
| CentralCache ()=default | |
| Constructor Function. | |
| virtual | ~CentralCache ()=default |
| Destructor Function. | |
| CentralCache (const CentralCache &)=delete | |
| Copy Constructor Function. | |
| CentralCache & | operator= (const CentralCache &)=delete |
| Copy Assignment Operation. | |
| size_t | FetchRange (void *&start, void *&end, size_t batchNum, size_t size) |
| Fetch range memory to tc. | |
| void | ReleaseListToSpans (void *start, size_t size) |
| Release memory to pc. | |
Static Public Member Functions | |
| static CentralCache * | Get () |
| Get this single Instance. | |
Static Private Member Functions | |
| static scl::span * | GetOneSpan (scl::span_list &list, size_t size) |
| Get a not empty span. | |
Private Attributes | |
| std::array< scl::span_list, MemoryPool::FREE_LIST_NUM > | m_SpanLists |
| FreeList Array. | |
Static Private Attributes | |
| static CentralCache | m_CentralCache |
| Single instance of this. | |
Central memory cache. Second level of memory allocator.
Definition at line 18 of file CentralCache.h.