RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
object.c 文件参考
#include <rtthread.h>
#include <rthw.h>
#include <dlmodule.h>
+ object.c 的引用(Include)关系图:

浏览该文件的源代码.

宏定义

#define _OBJ_CONTAINER_LIST_INIT(c)
 

枚举

enum  rt_object_info_type {
  RT_Object_Info_Thread = 0 , RT_Object_Info_Semaphore , RT_Object_Info_Mutex , RT_Object_Info_Event ,
  RT_Object_Info_MailBox , RT_Object_Info_MessageQueue , RT_Object_Info_MemPool , RT_Object_Info_Device ,
  RT_Object_Info_Timer , RT_Object_Info_Module , RT_Object_Info_Memory , RT_Object_Info_Custom ,
  RT_Object_Info_Unknown
}
 

函数

struct rt_object_informationrt_object_get_information (enum rt_object_class_type type)
 
 RTM_EXPORT (rt_object_get_information)
 
int rt_object_get_length (enum rt_object_class_type type)
 
 RTM_EXPORT (rt_object_get_length)
 
int rt_object_get_pointers (enum rt_object_class_type type, rt_object_t *pointers, int maxlen)
 
 RTM_EXPORT (rt_object_get_pointers)
 
void rt_object_init (struct rt_object *object, enum rt_object_class_type type, const char *name)
 
void rt_object_detach (rt_object_t object)
 
rt_object_t rt_object_allocate (enum rt_object_class_type type, const char *name)
 
void rt_object_delete (rt_object_t object)
 
rt_bool_t rt_object_is_systemobject (rt_object_t object)
 
rt_uint8_t rt_object_get_type (rt_object_t object)
 
rt_err_t rt_object_for_each (rt_uint8_t type, rt_object_iter_t iter, void *data)
 
rt_object_t rt_object_find (const char *name, rt_uint8_t type)
 
rt_err_t rt_object_get_name (rt_object_t object, char *name, rt_uint8_t name_size)
 
rt_object_t rt_custom_object_create (const char *name, void *data, rt_err_t(*data_destroy)(void *))
 
rt_err_t rt_custom_object_destroy (rt_object_t obj)
 

宏定义说明

◆ _OBJ_CONTAINER_LIST_INIT

#define _OBJ_CONTAINER_LIST_INIT ( c)
值:
{&(_object_container[c].object_list), &(_object_container[c].object_list)}

在文件 object.c87 行定义.

87#define _OBJ_CONTAINER_LIST_INIT(c) \
88 {&(_object_container[c].object_list), &(_object_container[c].object_list)}

枚举类型说明

◆ rt_object_info_type

枚举值
RT_Object_Info_Thread 

The object is a thread.

RT_Object_Info_Semaphore  

The object is a semaphore.

RT_Object_Info_Mutex  

The object is a mutex.

RT_Object_Info_Event  

The object is a event.

RT_Object_Info_MailBox  

The object is a mail box.

RT_Object_Info_MessageQueue  

The object is a message queue.

RT_Object_Info_MemPool  

The object is a memory pool.

RT_Object_Info_Device  

The object is a device

RT_Object_Info_Timer  

The object is a timer.

RT_Object_Info_Module  

The object is a module.

RT_Object_Info_Memory  

The object is a memory.

RT_Object_Info_Custom  

The object is a custom object

RT_Object_Info_Unknown  

The object is unknown.

在文件 object.c42 行定义.

43{
45#ifdef RT_USING_SEMAPHORE
47#endif
48#ifdef RT_USING_MUTEX
50#endif
51#ifdef RT_USING_EVENT
53#endif
54#ifdef RT_USING_MAILBOX
56#endif
57#ifdef RT_USING_MESSAGEQUEUE
59#endif
60#ifdef RT_USING_MEMHEAP
61 RT_Object_Info_MemHeap,
62#endif
63#ifdef RT_USING_MEMPOOL
65#endif
66#ifdef RT_USING_DEVICE
68#endif
70#ifdef RT_USING_MODULE
72#endif
73#ifdef RT_USING_HEAP
75#endif
76#ifdef RT_USING_SMART
77 RT_Object_Info_Channel,
78 RT_Object_Info_ProcessGroup,
79 RT_Object_Info_Session,
80#endif
81#ifdef RT_USING_HEAP
83#endif
85};
@ RT_Object_Info_Event
@ RT_Object_Info_Memory
@ RT_Object_Info_MemPool
@ RT_Object_Info_Custom
@ RT_Object_Info_Module
@ RT_Object_Info_Thread
@ RT_Object_Info_MailBox
@ RT_Object_Info_Unknown
@ RT_Object_Info_Timer
@ RT_Object_Info_MessageQueue
@ RT_Object_Info_Mutex
@ RT_Object_Info_Device
@ RT_Object_Info_Semaphore