From cc6bec3330c29cc29f54d3e3d919d510f0197641 Mon Sep 17 00:00:00 2001
From: wzq <wzq@localhost.localdomain>
Date: 星期六, 22 八月 2020 19:35:42 +0800
Subject: [PATCH] update

---
 src/queue/include/shm_allocator.h |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/queue/include/shm_allocator.h b/src/queue/include/shm_allocator.h
index 023bc9d..084a678 100644
--- a/src/queue/include/shm_allocator.h
+++ b/src/queue/include/shm_allocator.h
@@ -66,13 +66,13 @@
 class SHM_Allocator {
   public:
     static void *allocate (size_t size) {
-       printf("shm_allocator malloc\n");
-      return mem_pool_malloc(size);
+      return mm_malloc(size);
+      // return mem_pool_malloc(size);
     }
 
     static void deallocate (void *ptr) {
-      printf("shm_allocator free\n");
-      return mem_pool_free(ptr);
+      return mm_free(ptr);
+      // return mem_pool_free(ptr);
     }
 };
 
@@ -80,12 +80,10 @@
 class DM_Allocator {
   public:
     static void *allocate (size_t size) {
-      printf("dm_allocator malloc\n");
       return malloc(size);
     }
 
     static void deallocate (void *ptr) {
-      printf("dm_allocator free\n");
       return free(ptr);
     }
 };
@@ -97,6 +95,6 @@
 
 
 
-typedef std::basic_string<char, std::char_traits<char>, SHM_STL_Allocator<char> > shmstring;
+typedef std::basic_string<char, std::char_traits<char>, SHM_STL_Allocator<char> > SHMString;
 
 #endif
\ No newline at end of file

--
Gitblit v1.8.0