Update the comments for ringbuffer and workqueue.

This commit is contained in:
Jackistang 2021-08-18 22:51:00 +08:00
parent 3de03a072e
commit 4c6b4028e3
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ rt_inline enum rt_ringbuffer_state rt_ringbuffer_status(struct rt_ringbuffer *rb
} }
/** /**
* @brief Initialize the ring buffer object with the given buffer. * @brief Initialize the ring buffer object.
* *
* @param rb A pointer to the ring buffer object. * @param rb A pointer to the ring buffer object.
* @param pool A pointer to the buffer. * @param pool A pointer to the buffer.
@ -415,7 +415,7 @@ RTM_EXPORT(rt_ringbuffer_reset);
* *
* @param size The size of the buffer in bytes. * @param size The size of the buffer in bytes.
* *
* @return Return a pointer to ring buffer object. When the return value is RT_NULL, it means the creation failed. * @return Return a pointer to ring buffer object. When the return value is RT_NULL, it means this creation failed.
*/ */
struct rt_ringbuffer *rt_ringbuffer_create(rt_uint16_t size) struct rt_ringbuffer *rt_ringbuffer_create(rt_uint16_t size)
{ {

View File

@ -302,7 +302,7 @@ rt_err_t rt_workqueue_submit_work(struct rt_workqueue *queue, struct rt_work *wo
} }
/** /**
* @brief Submit a work item to the work queue without delay. This work item will be executed after the current work item is executed. * @brief Submit a work item to the work queue without delay. This work item will be executed after the current work item.
* *
* @param queue A pointer to the workqueue object. * @param queue A pointer to the workqueue object.
* @param work A pointer to the work item object. * @param work A pointer to the work item object.