mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-23 23:11:58 -04:00
Replace xTaskIsTaskSuspended() call with eTaskGetState() call in IntQueue.c as the former is now a private function.
This commit is contained in:
parent
4f01401c00
commit
c6d8892b0d
|
@ -424,9 +424,9 @@ unsigned portBASE_TYPE uxValue, uxRxed;
|
||||||
{
|
{
|
||||||
if( xQueueReceive( xNormallyEmptyQueue, &uxRxed, intqONE_TICK_DELAY ) != errQUEUE_EMPTY )
|
if( xQueueReceive( xNormallyEmptyQueue, &uxRxed, intqONE_TICK_DELAY ) != errQUEUE_EMPTY )
|
||||||
{
|
{
|
||||||
/* We should only obtain a value when the high priority task is
|
/* A value should only be obtained when the high priority task is
|
||||||
suspended. */
|
suspended. */
|
||||||
if( xTaskIsTaskSuspended( xHighPriorityNormallyEmptyTask1 ) == pdFALSE )
|
if( eTaskGetState( xHighPriorityNormallyEmptyTask1 ) != eSuspended )
|
||||||
{
|
{
|
||||||
prvQueueAccessLogError( __LINE__ );
|
prvQueueAccessLogError( __LINE__ );
|
||||||
}
|
}
|
||||||
|
@ -621,9 +621,8 @@ unsigned portBASE_TYPE uxValue, uxTxed = 9999;
|
||||||
{
|
{
|
||||||
if( xQueueSend( xNormallyFullQueue, &uxTxed, intqONE_TICK_DELAY ) != errQUEUE_FULL )
|
if( xQueueSend( xNormallyFullQueue, &uxTxed, intqONE_TICK_DELAY ) != errQUEUE_FULL )
|
||||||
{
|
{
|
||||||
/* We would only expect to succeed when the higher priority task
|
/* Should only succeed when the higher priority task is suspended */
|
||||||
is suspended. */
|
if( eTaskGetState( xHighPriorityNormallyFullTask1 ) != eSuspended )
|
||||||
if( xTaskIsTaskSuspended( xHighPriorityNormallyFullTask1 ) == pdFALSE )
|
|
||||||
{
|
{
|
||||||
prvQueueAccessLogError( __LINE__ );
|
prvQueueAccessLogError( __LINE__ );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue