* @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. *
| 80 | * @warning This function can be called from all IPC initialization and creation. |
| 81 | */ |
| 82 | rt_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 | /** |
no test coverage detected