wangzhengquan
2020-07-21 91ec036cace39fd5b5f04644f6bced1f477005e0
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);
    }
};