mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-03 18:22:45 -05:00 
			
		
		
		
	POSIX Simulator: Assert if vPortYield called from a non-FreeRTOS thread (#1247)
This commit is contained in:
		
							parent
							
								
									29e817b70e
								
							
						
					
					
						commit
						15ec8b8995
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -384,6 +384,10 @@ static void prvPortYieldFromISR( void )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void vPortYield( void )
 | 
					void vPortYield( void )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    /* This must never be called from outside of a FreeRTOS-owned thread, or
 | 
				
			||||||
 | 
					     * the thread could get stuck in a suspended state. */
 | 
				
			||||||
 | 
					    configASSERT( prvIsFreeRTOSThread() == pdTRUE );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    vPortEnterCritical();
 | 
					    vPortEnterCritical();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    prvPortYieldFromISR();
 | 
					    prvPortYieldFromISR();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue