lean4-htt/src/runtime/alloc.h
2021-09-07 08:24:54 -07:00

18 lines
401 B
C++

/*
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include <stddef.h>
#include <stdint.h>
namespace lean {
void init_thread_heap();
void * alloc(size_t sz);
void dealloc(void * o, size_t sz);
uint64_t get_num_heartbeats();
void initialize_alloc();
void finalize_alloc();
}