RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_mempool结构体 参考

#include <rtdef.h>

成员变量

struct rt_object parent
 
void * start_address
 
rt_size_t size
 
rt_size_t block_size
 
rt_uint8_tblock_list
 
rt_size_t block_total_count
 
rt_size_t block_free_count
 
rt_list_t suspend_thread
 
struct rt_spinlock spinlock
 

详细描述

Base structure of Memory pool object

在文件 rtdef.h1214 行定义.

结构体成员变量说明

◆ parent

struct rt_object rt_mempool::parent

inherit from rt_object

在文件 rtdef.h1216 行定义.

◆ start_address

void* rt_mempool::start_address

memory pool start

在文件 rtdef.h1218 行定义.

◆ size

rt_size_t rt_mempool::size

size of memory pool

在文件 rtdef.h1219 行定义.

◆ block_size

rt_size_t rt_mempool::block_size

size of memory blocks

在文件 rtdef.h1221 行定义.

◆ block_list

rt_uint8_t* rt_mempool::block_list

memory blocks list

在文件 rtdef.h1222 行定义.

◆ block_total_count

rt_size_t rt_mempool::block_total_count

numbers of memory block

在文件 rtdef.h1224 行定义.

◆ block_free_count

rt_size_t rt_mempool::block_free_count

numbers of free memory block

在文件 rtdef.h1225 行定义.

◆ suspend_thread

rt_list_t rt_mempool::suspend_thread

threads pended on this resource

在文件 rtdef.h1227 行定义.

◆ spinlock

struct rt_spinlock rt_mempool::spinlock

在文件 rtdef.h1228 行定义.