Queue Send fix

Fixes rare deadlock on heavy loaded multicore-systems.
This commit is contained in:
timoxd7 2022-11-17 20:20:29 +01:00 committed by GitHub
parent aad600c9ca
commit 355abfdff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1693,15 +1693,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 ) );