WIP Two-Level Segregated Fit (TLSF) implementation
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
|
||||
namespace mimir {
|
||||
|
||||
struct TLSFBlock;
|
||||
|
||||
// Heap implementation based on Two-Level Segregated Fit (TLSF) memory allocation
|
||||
class Heap
|
||||
{
|
||||
@@ -60,6 +62,12 @@ public:
|
||||
|
||||
private:
|
||||
Region m_region;
|
||||
|
||||
// Add a free block to the index
|
||||
void insertFreeBlock(TLSFBlock* block);
|
||||
|
||||
// Remove a free block from the index
|
||||
void removeFreeBlock(TLSFBlock* block);
|
||||
};
|
||||
|
||||
} // namespace mimir
|
||||
|
||||
Reference in New Issue
Block a user