]> granicus.if.org Git - esp-idf/commit
freertos: fix protection issue in freertos queue event list
authorLiu Zhi Fu <liuzhifu@espressif.com>
Tue, 24 Jan 2017 12:40:14 +0000 (20:40 +0800)
committerLiu Zhi Fu <liuzhifu@espressif.com>
Fri, 10 Feb 2017 02:30:17 +0000 (10:30 +0800)
commit0017e75bdad9bb48c2161063793ac423de4a609f
tree17216c4b3942f116a9a571dbd4aa7c384194b66d
parent7093c59a7484400489d1c5a3a51680cd68721637
freertos: fix protection issue in freertos queue event list

When functions in queue.c calls listLIST_IS_EMPTY() to check queue event list, the queue list is
protected by queue mutex, on the other hand, when xTaskIncrementTick() modify the queue list, the
 queue list is protected by xTaskQueueMutex, this may cause xTaskRemoveFromEventList operate on
the empty queue list and cause problem. This commit is to fix this bug.

may cause
components/freertos/tasks.c