]> granicus.if.org Git - esp-idf/commitdiff
freertos: minor issue in documentation snippet of queue.
authorKrzysztof Bociurko <git@chanibal.pl>
Sun, 29 Oct 2017 21:49:41 +0000 (22:49 +0100)
committerAngus Gratton <gus@projectgus.com>
Thu, 16 Nov 2017 23:44:19 +0000 (10:44 +1100)
taskYIELD was used in ISR context, but portYIELD_FROM_ISR should instead.

Merges https://github.com/espressif/esp-idf/pull/1187

components/freertos/include/freertos/queue.h

index 9d95ad1bb6b9bb8b3b6375aff5d1b250810fdc90..638157765acc9f8b1c9cf6f8f887fcaa0f8aa6ba 100644 (file)
@@ -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 ();
        }
  }
  </pre>
@@ -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 ();
        }
  }
  </pre>