From: Ivan Grokhotkov Date: Wed, 15 Feb 2017 05:25:51 +0000 (+0800) Subject: Merge branch 'bugfix/fix_protection_of_queue_list' into 'master' X-Git-Tag: v2.0-rc2~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01c4a980ee05b5eddefd9d01a2bbdecde9944ce7;p=esp-idf Merge branch 'bugfix/fix_protection_of_queue_list' into 'master' 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 change works around the problem by reducing the window where the race condition can happen. See merge request !465 --- 01c4a980ee05b5eddefd9d01a2bbdecde9944ce7