OrocosComponentLibrary
2.8.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
orocos_toolchain
ocl
lua
tlsf_rtt.h
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;
15
lua_State *L;
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);
22
void
set_context_tlsf_info(
struct
lua_tlsf_info
*);
23
void
register_tlsf_api(lua_State *L);
24
lua_tlsf_info
Definition:
tlsf_rtt.h:10
Generated by
1.8.11