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

Function mq_timedsend

components/libc/posix/ipc/mqueue.c:339–347  ·  view source on GitHub ↗

* @brief Sends a message to a message queue with a timeout (not supported). * @param id Message queue descriptor. * @param msg_ptr Pointer to the buffer containing the message to be sent. * @param msg_len Size of the message to be sent. * @param msg_prio Priority of the message to be sent. * @param abs_timeout Pointer to a struct timespec specifying the absolute timeout value (ign

Source from the content-addressed store, hash-verified

337 * The function returns the result of the mq_send() function, which indicates whether the message was successfully sent.
338 */
339int mq_timedsend(mqd_t id,
340 const char *msg_ptr,
341 size_t msg_len,
342 unsigned msg_prio,
343 const struct timespec *abs_timeout)
344{
345 /* RT-Thread does not support timed send */
346 return mq_send(id, msg_ptr, msg_len, msg_prio);
347}
348RTM_EXPORT(mq_timedsend);
349
350/**

Callers 1

sys_mq_timedsendFunction · 0.85

Calls 1

mq_sendFunction · 0.85

Tested by

no test coverage detected