int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout);
When the specified message queue is not full,
If the message queue specified by mqdes is not full
and the queue has the O_NONBLOCK flag set in its
message queue description,
The timeout expires when the absolute time specified by
abs_timeout passes, as measured by the clock on
which timeouts are based (that is, when the value of that clock equals
or exceeds abs_timeout), or if abs_timeout
has already been passed when
The resolution of the timeout is the resolution of the clock on which it is based. The <time.h> header defines timespec data type.
This operation never fails with a timeout if there is insufficient room to add the message to the queue immediately. When there is sufficient room in the queue to add the message, the validity of the abs_timeout argument is not checked.
Specifies the maximum wait for sufficient room to become available to add the message to the specified message queue.
Specifies the message queue descriptor associated with the message queue to which the message is to be added.
Specifies the length, in bytes, of the message to be added to the message queue.
Specifies the priority of the message to be added to the message queue.
Points to the message to be added to the message queue.
On success, the
The O_NONBLOCK flag is set in the message queue description associated with mqdes, and the specified message queue is full.
mqdes is not a valid message queue descriptor open for writing.
A signal interrupted the
The value of msg_prio was outside the valid range.
The process or thread would have blocked, and the abs_timeout argument specified an invalid value.
The value of msg_len exceeds the message size attribute of the message queue.
The O_NONBLOCK flag was not set when the message queue was opened, but the timeout expired before the message could be added to the queue.
On the NuTCRACKER Platform, the Windows
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.