wangzhengquan
2020-07-27 d94bfb19c54d4b980c1b4d63b42f3dfa0bc202a6
src/queue/include/shm_allocator.h
@@ -66,12 +66,10 @@
class SHM_Allocator {
  public:
    static void *allocate (size_t size) {
       printf("shm_allocator malloc\n");
      return mem_pool_malloc(size);
    }
    static void deallocate (void *ptr) {
      printf("shm_allocator free\n");
      return mem_pool_free(ptr);
    }
};
@@ -80,12 +78,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);
    }
};