* @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
| 337 | * The function returns the result of the mq_send() function, which indicates whether the message was successfully sent. |
| 338 | */ |
| 339 | int 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 | } |
| 348 | RTM_EXPORT(mq_timedsend); |
| 349 | |
| 350 | /** |
no test coverage detected