提交 c414bdaa 编写于 作者: armink_ztl's avatar armink_ztl

[DeviceDrivers]Modify the dataqueue comments.

上级 6fe47a95
...@@ -122,10 +122,9 @@ rt_err_t rt_data_queue_push(struct rt_data_queue *queue, ...@@ -122,10 +122,9 @@ rt_err_t rt_data_queue_push(struct rt_data_queue *queue,
queue->queue[queue->put_index % queue->size].data_size = data_size; queue->queue[queue->put_index % queue->size].data_size = data_size;
queue->put_index += 1; queue->put_index += 1;
/* there is at least one thread in suspended list */
if (!rt_list_isempty(&(queue->suspended_pop_list))) if (!rt_list_isempty(&(queue->suspended_pop_list)))
{ {
/* there is at least one thread in suspended list */
/* get thread entry */ /* get thread entry */
thread = rt_list_entry(queue->suspended_pop_list.next, thread = rt_list_entry(queue->suspended_pop_list.next,
struct rt_thread, struct rt_thread,
...@@ -217,10 +216,7 @@ rt_err_t rt_data_queue_pop(struct rt_data_queue *queue, ...@@ -217,10 +216,7 @@ rt_err_t rt_data_queue_pop(struct rt_data_queue *queue,
if ((queue->put_index - queue->get_index) <= queue->lwm) if ((queue->put_index - queue->get_index) <= queue->lwm)
{ {
/* /* there is at least one thread in suspended list */
* there is at least one thread in suspended list
* and less than low water mark
*/
if (!rt_list_isempty(&(queue->suspended_push_list))) if (!rt_list_isempty(&(queue->suspended_push_list)))
{ {
/* get thread entry */ /* get thread entry */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册