Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
memory_pool.h File Reference

Platform-specific aligned memory allocation pool for monitoring objects. More...

#include <atomic>
#include <cstddef>
#include <cstdlib>
#include <memory>
#include <mutex>
#include <new>
#include <vector>
#include "kcenon/monitoring/core/result_types.h"
Include dependency graph for memory_pool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::monitoring::memory_pool_config
 Configuration for memory pool. More...
 
struct  kcenon::monitoring::memory_pool_statistics
 Statistics for memory pool operations. More...
 
class  kcenon::monitoring::memory_pool
 Thread-safe fixed-size block memory allocator. More...
 

Namespaces

namespace  detail
 Internal implementation details - not part of public API.
 
namespace  kcenon
 
namespace  kcenon::monitoring
 

Functions

void * detail::aligned_alloc_impl (size_t alignment, size_t size)
 Platform-specific aligned memory allocation.
 
void detail::aligned_free_impl (void *ptr)
 Platform-specific aligned memory deallocation.
 
std::unique_ptr< memory_poolkcenon::monitoring::make_memory_pool ()
 Create a memory pool with default configuration.
 
std::unique_ptr< memory_poolkcenon::monitoring::make_memory_pool (const memory_pool_config &config)
 Create a memory pool with configuration.
 
std::vector< memory_pool_configkcenon::monitoring::create_default_pool_configs ()
 Create default pool configurations for different use cases.
 

Detailed Description

Platform-specific aligned memory allocation pool for monitoring objects.

Definition in file memory_pool.h.