SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::CentralCache Class Reference

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.
 
CentralCacheoperator= (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 CentralCacheGet ()
 Get this single Instance.
 

Static Private Member Functions

static scl::spanGetOneSpan (scl::span_list &list, size_t size)
 Get a not empty span.
 

Private Attributes

std::array< scl::span_list, MemoryPool::FREE_LIST_NUMm_SpanLists
 FreeList Array.
 

Static Private Attributes

static CentralCache m_CentralCache
 Single instance of this.
 

Detailed Description

Central memory cache. Second level of memory allocator.

Definition at line 18 of file CentralCache.h.


The documentation for this class was generated from the following files: