From 91ec036cace39fd5b5f04644f6bced1f477005e0 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 21 七月 2020 19:33:28 +0800 Subject: [PATCH] update --- src/queue/include/shm_allocator.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/queue/include/shm_allocator.h b/src/queue/include/shm_allocator.h index 6d9dcc6..023bc9d 100644 --- a/src/queue/include/shm_allocator.h +++ b/src/queue/include/shm_allocator.h @@ -1,7 +1,7 @@ #ifndef __SHM_ALLOCATOR_H__ #define __SHM_ALLOCATOR_H__ #include "usg_common.h" -#include "mm.h" +#include "mem_pool.h" #include <new> #include <cstdlib> // for exit() #include <climits> // for UNIX_MAX @@ -67,12 +67,12 @@ public: static void *allocate (size_t size) { printf("shm_allocator malloc\n"); - return mm_malloc(size); + return mem_pool_malloc(size); } static void deallocate (void *ptr) { printf("shm_allocator free\n"); - return mm_free(ptr); + return mem_pool_free(ptr); } }; -- Gitblit v1.8.0