This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 09c6b02017 Documentation:fix error describe on message queue
09c6b02017 is described below
commit 09c6b020170ae1a5077bbda5ae970cf647a2b753
Author: anjiahao <[email protected]>
AuthorDate: Tue Apr 26 15:21:28 2022 +0800
Documentation:fix error describe on message queue
Signed-off-by: anjiahao <[email protected]>
---
Documentation/reference/user/04_message_queue.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/reference/user/04_message_queue.rst
b/Documentation/reference/user/04_message_queue.rst
index d5d6b8ebe0..7893258a77 100644
--- a/Documentation/reference/user/04_message_queue.rst
+++ b/Documentation/reference/user/04_message_queue.rst
@@ -167,7 +167,7 @@ handlers may send messages via named message queues.
priority messages The value of ``prio`` must not exceed ``MQ_PRIO_MAX``.
If the specified message queue is full and ``O_NONBLOCK`` is not set in
- the message queue, then ``mq_send()`` will block until space becomes
+ the message queue, then ``mq_timedsend()`` will block until space becomes
available to the queue the message or until a timeout occurs.
``mq_timedsend()`` behaves just like ``mq_send()``, except that if the
@@ -188,7 +188,7 @@ handlers may send messages via named message queues.
error, -1 (``ERROR``) is returned, with ```errno`` <#ErrnoAccess>`__ set
to indicate the error:
- - ``EAGAIN``. The queue was empty, and the ``O_NONBLOCK`` flag was set
+ - ``EAGAIN``. The queue was full, and the ``O_NONBLOCK`` flag was set
for the message queue description referred to by ``mqdes``.
- ``EINVAL``. Either ``msg`` or ``mqdes`` is ``NULL`` or the value of
``prio`` is invalid.