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

Function _ipc_msg_free

components/lwp/lwp_ipc.c:88–96  ·  view source on GitHub ↗

* Put a released IPC message back to the released chain. */

Source from the content-addressed store, hash-verified

86 * Put a released IPC message back to the released chain.
87 */
88static void _ipc_msg_free(rt_ipc_msg_t p_msg)
89{
90 rt_base_t level;
91
92 level = rt_spin_lock_irqsave(&_msg_list_lock);
93 p_msg->msg.sender = (void *)_ipc_msg_free_list;
94 _ipc_msg_free_list = p_msg;
95 rt_spin_unlock_irqrestore(&_msg_list_lock, level);
96}
97
98/**
99 * Initialized the IPC message.

Callers 4

wakeup_sender_wait_recvFunction · 0.85
sender_timeoutFunction · 0.85
_do_send_recv_timeoutFunction · 0.85

Calls 2

rt_spin_lock_irqsaveFunction · 0.50

Tested by

no test coverage detected