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

Function sys_mq_delete

components/lwp/lwp_syscall.c:2651–2654  ·  view source on GitHub ↗

* @brief Deletes a message queue. * * This system call deletes the specified message queue and releases any resources * associated with it. After calling this function, the message queue handle * becomes invalid and should not be used. * * @param[in] mq The handle to the message queue to be deleted. * Must be a valid `rt_mq_t` object. * * @return sysret_t Returns a status c

Source from the content-addressed store, hash-verified

2649 * synchronization before deletion.
2650 */
2651sysret_t sys_mq_delete(rt_mq_t mq)
2652{
2653 return lwp_user_object_delete(lwp_self(), (rt_object_t)mq);
2654}
2655
2656/**
2657 * @brief Sends a message to a message queue.

Callers

nothing calls this directly

Calls 2

lwp_user_object_deleteFunction · 0.85
lwp_selfFunction · 0.85

Tested by

no test coverage detected