zhangmeng
2024-04-09 2561a007b8d8999a4750046d0cfb3b1ad5af50ac
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);
    }
};