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

Method put

components/libc/cplusplus/os/cxx_queue.h:47–50  ·  view source on GitHub ↗

Put a message in a Queue. @param data message pointer. @param millisec timeout value or 0 in case of no time-out. (default: 0) @return status code that indicates the execution status of the function. */

Source from the content-addressed store, hash-verified

45 @return status code that indicates the execution status of the function.
46 */
47 rt_err_t put(T& data, int32_t millisec = 0)
48 {
49 return rt_mq_send(&mID, &data, sizeof(data));
50 }
51
52 /** Get a message or Wait for a message from a Queue.
53 @param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).

Callers

nothing calls this directly

Calls 1

rt_mq_sendFunction · 0.85

Tested by

no test coverage detected