MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _ipc_object_init

Function _ipc_object_init

src/ipc.c:82–88  ·  view source on GitHub ↗

* @brief This function will initialize an IPC object, such as semaphore, mutex, messagequeue and mailbox. * * @note Executing this function will complete an initialization of the suspend thread list of the ipc object. * * @param ipc is a pointer to the IPC object. * * @return Return the operation status. When the return value is RT_EOK, the initialization is successful. *

Source from the content-addressed store, hash-verified

80 * @warning This function can be called from all IPC initialization and creation.
81 */
82rt_inline rt_err_t _ipc_object_init(struct rt_ipc_object *ipc)
83{
84 /* initialize ipc object */
85 rt_list_init(&(ipc->suspend_thread));
86
87 return RT_EOK;
88}
89
90
91/**

Callers 9

_sem_object_initFunction · 0.85
rt_mutex_initFunction · 0.85
rt_mutex_createFunction · 0.85
rt_event_initFunction · 0.85
rt_event_createFunction · 0.85
rt_mb_initFunction · 0.85
rt_mb_createFunction · 0.85
rt_mq_initFunction · 0.85
rt_mq_createFunction · 0.85

Calls 1

rt_list_initFunction · 0.85

Tested by

no test coverage detected