SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ~ThreadCache()

Spices::ThreadCache::~ThreadCache ( )
virtual

Destructor Function.

Release all memory to cc while thread is destroied.

Release all memory to cc while thread is destroied.

Definition at line 14 of file ThrealCache.cpp.

15 {
19 for (int i = 0; i < MemoryPool::FREE_LIST_NUM; i++)
20 {
21 if (m_FreeLists[i].Size() > 0)
22 {
24 }
25 }
26 }
static size_t Bytes(size_t index)
Determine how much bytes freelist should process the memory block with given index.
static constexpr size_t FREE_LIST_NUM
Number of freelist. equals to 16 + 56 + 56 + 56 + 24.
Definition MemoryPool.h:29
std::array< scl::free_list, MemoryPool::FREE_LIST_NUM > m_FreeLists
FreeList Array.
Definition ThrealCache.h:81
static void ReleaseToCentralCache(scl::free_list &list, size_t size, size_t count)
Release memory to cc.