From: Krzysztof Bociurko Date: Sun, 29 Oct 2017 21:49:41 +0000 (+0100) Subject: freertos: minor issue in documentation snippet of queue. X-Git-Tag: v3.1-dev~48^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4da90f09e7a80aa24fbbbd5e8dcce34387346a35;p=esp-idf freertos: minor issue in documentation snippet of queue. taskYIELD was used in ISR context, but portYIELD_FROM_ISR should instead. Merges https://github.com/espressif/esp-idf/pull/1187 --- diff --git a/components/freertos/include/freertos/queue.h b/components/freertos/include/freertos/queue.h index 9d95ad1bb6..638157765a 100644 --- a/components/freertos/include/freertos/queue.h +++ b/components/freertos/include/freertos/queue.h @@ -1106,7 +1106,7 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; // Now the buffer is empty we can switch context if necessary. if( xHigherPriorityTaskWoken ) { - taskYIELD (); + portYIELD_FROM_ISR (); } } @@ -1177,7 +1177,7 @@ void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; // Now the buffer is empty we can switch context if necessary. if( xHigherPriorityTaskWoken ) { - taskYIELD (); + portYIELD_FROM_ISR (); } }