tlsf_rtt.h
Go to the documentation of this file.
1 
2 #include <lua.h>
3 #include <lauxlib.h>
4 #include <lualib.h>
5 
6 #define TLSF_INITIAL_POOLSIZE 1*1024*1024
7 #undef TLSF_DEBUG
8 
9 /* this is used as the opque Lua userdata to the alloc func */
10 struct lua_tlsf_info {
11  void *pool;
12  void *pool2;
13  unsigned int total_mem;
14  unsigned int mask;
16 };
17 
18 int tlsf_rtt_init_mp(struct lua_tlsf_info *tlsf_inf, size_t sz);
19 void tlsf_rtt_free_mp(struct lua_tlsf_info *tlsf_inf);
20 void* tlsf_alloc (void *ud, void *ptr, size_t osize, size_t nsize);
21 int tlsf_rtt_incmem(struct lua_tlsf_info *tlsf_inf, size_t sz);
24 
void * pool2
Definition: tlsf_rtt.h:12
int tlsf_rtt_init_mp(struct lua_tlsf_info *tlsf_inf, size_t sz)
Definition: tlsf_rtt.c:24
void * pool
Definition: tlsf_rtt.h:11
int tlsf_rtt_incmem(struct lua_tlsf_info *tlsf_inf, size_t sz)
Definition: tlsf_rtt.c:88
void set_context_tlsf_info(struct lua_tlsf_info *)
Definition: tlsf_rtt.c:105
struct lua_State lua_State
Definition: lua-repl.h:54
void register_tlsf_api(lua_State *L)
Definition: tlsf_rtt.c:185
void tlsf_rtt_free_mp(struct lua_tlsf_info *tlsf_inf)
Definition: tlsf_rtt.c:50
unsigned int mask
Definition: tlsf_rtt.h:14
void * tlsf_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
Definition: tlsf_rtt.c:68
lua_State * L
Definition: tlsf_rtt.h:15
unsigned int total_mem
Definition: tlsf_rtt.h:13


ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19