From 2561a007b8d8999a4750046d0cfb3b1ad5af50ac Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 09 四月 2024 15:29:32 +0800 Subject: [PATCH] test for perf --- src/shm/shm_allocator.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shm/shm_allocator.h b/src/shm/shm_allocator.h index 084a678..01f1ef3 100644 --- a/src/shm/shm_allocator.h +++ b/src/shm/shm_allocator.h @@ -1,7 +1,7 @@ #ifndef __SHM_ALLOCATOR_H__ #define __SHM_ALLOCATOR_H__ #include "usg_common.h" -#include "mem_pool.h" +#include "mm.h" #include <new> #include <cstdlib> // for exit() #include <climits> // for UNIX_MAX @@ -67,12 +67,12 @@ public: static void *allocate (size_t size) { return mm_malloc(size); - // return mem_pool_malloc(size); + // return shm_mm_malloc(size); } static void deallocate (void *ptr) { return mm_free(ptr); - // return mem_pool_free(ptr); + // return shm_mm_free(ptr); } }; -- Gitblit v1.8.0