1 /**
2  * @file lv_tlsf_private.h
3  *
4  */
5 
6 #ifndef LV_TLSF_PRIVATE_H
7 #define LV_TLSF_PRIVATE_H
8 
9 #if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 /*********************
16  *      INCLUDES
17  *********************/
18 
19 #include "lv_tlsf.h"
20 #include "../../osal/lv_os.h"
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 typedef struct {
31 #if LV_USE_OS
32     lv_mutex_t mutex;
33 #endif
34     lv_tlsf_t tlsf;
35     size_t cur_used;
36     size_t max_used;
37     lv_ll_t  pool_ll;
38 } lv_tlsf_state_t;
39 
40 /**********************
41  * GLOBAL PROTOTYPES
42  **********************/
43 
44 /**********************
45  *      MACROS
46  **********************/
47 
48 #ifdef __cplusplus
49 } /*extern "C"*/
50 #endif
51 
52 #endif /*LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN*/
53 
54 #endif /*LV_TLSF_PRIVATE_H*/
55