| 689 | /*-----------------------------------------------------------*/ |
| 690 | |
| 691 | static void prvYieldCore( BaseType_t xCoreID ) |
| 692 | { |
| 693 | /* This must be called from a critical section and |
| 694 | * xCoreID must be valid. */ |
| 695 | |
| 696 | if( portCHECK_IF_IN_ISR() && ( xCoreID == portGET_CORE_ID() ) ) |
| 697 | { |
| 698 | xYieldPendings[ xCoreID ] = pdTRUE; |
| 699 | } |
| 700 | else if( pxCurrentTCBs[ xCoreID ]->xTaskRunState != taskTASK_YIELDING ) |
| 701 | { |
| 702 | if( xCoreID == portGET_CORE_ID() ) |
| 703 | { |
| 704 | xYieldPendings[ xCoreID ] = pdTRUE; |
| 705 | } |
| 706 | else |
| 707 | { |
| 708 | portYIELD_CORE( xCoreID ); |
| 709 | pxCurrentTCBs[ xCoreID ]->xTaskRunState = taskTASK_YIELDING; |
| 710 | } |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | /*-----------------------------------------------------------*/ |
| 715 |
no outgoing calls
no test coverage detected