Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_10199' into 'master'
Browse files Browse the repository at this point in the history
Removed the 'configASSERT( xInheritanceOccurred == pdFALSE )' assertion from xQueueSemaphoreTake (GitHub PR)

Closes IDFGH-8766

See merge request espressif/esp-idf!21272
  • Loading branch information
Dazza0 committed Nov 28, 2022
2 parents 1d52dfd + 355abfd commit 2976703
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions components/freertos/FreeRTOS-Kernel/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1675,15 +1675,6 @@ BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue,
{
if( xTicksToWait == ( TickType_t ) 0 )
{
/* For inheritance to have occurred there must have been an
* initial timeout, and an adjusted timeout cannot become 0, as
* if it were 0 the function would have exited. */
#if ( configUSE_MUTEXES == 1 )
{
configASSERT( xInheritanceOccurred == pdFALSE );
}
#endif /* configUSE_MUTEXES */

/* The semaphore count was 0 and no block time is specified
* (or the block time has expired) so exit now. */
taskEXIT_CRITICAL( &( pxQueue->xQueueLock ) );
Expand Down

0 comments on commit 2976703

Please sign in to comment.