FastLED 3.9.15
Loading...
Searching...
No Matches

◆ cleanup()

template<typename T, fl::size SLAB_SIZE = FASTLED_DEFAULT_SLAB_SIZE>
void fl::SlabAllocator< T, SLAB_SIZE >::cleanup ( )
inline

Definition at line 681 of file allocator.h.

681 {
682 while (mSlabs) {
683 Slab* next = mSlabs->next;
684 mSlabs->~Slab();
685 Free(mSlabs);
686 mSlabs = next;
687 }
688 mTotalAllocated = 0;
690 }
fl::size mTotalDeallocated
Definition allocator.h:485
fl::size mTotalAllocated
Definition allocator.h:484
void Free(void *ptr)

References FL_NOEXCEPT, fl::Free(), mSlabs, mTotalAllocated, and mTotalDeallocated.

Referenced by ~SlabAllocator(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: