* If not in a critical section then yield immediately. * Otherwise set xYieldPending to true to wait to * yield until exiting the critical section. */
| 5251 | * yield until exiting the critical section. |
| 5252 | */ |
| 5253 | void vTaskYieldWithinAPI( void ) |
| 5254 | { |
| 5255 | if( pxCurrentTCB->uxCriticalNesting == 0U ) |
| 5256 | { |
| 5257 | portYIELD(); |
| 5258 | } |
| 5259 | else |
| 5260 | { |
| 5261 | xYieldPendings[ portGET_CORE_ID() ] = pdTRUE; |
| 5262 | } |
| 5263 | } |
| 5264 | /*-----------------------------------------------------------*/ |
| 5265 | |
| 5266 | #if ( portCRITICAL_NESTING_IN_TCB == 1 ) |
no outgoing calls
no test coverage detected