SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ReleaseToCentralCache()

void Spices::ThreadCache::ReleaseToCentralCache ( scl::free_list & list,
size_t size,
size_t count )
staticprivate

Release memory to cc.

Parameters
[in]listfree_list.
[in]sizeobject bytes.
[in]countrelease count.

Definition at line 111 of file ThrealCache.cpp.

112 {
113 void* start = nullptr;
114 void* end = nullptr;
115
116 list.PopRange(start, end, count);
117
119 }
void ReleaseListToSpans(void *start, size_t size)
Release memory to pc.
static CentralCache * Get()
Get this single Instance.
void PopRange(void *&start, void *&end, size_t size)
Pop unused memory blocks from this free list.
Definition FreeList.cpp:76
constexpr int count
Calculate count that meets requirement.
Definition TypeList.h:289