mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	POSIX Simulator: Assert if vPortYield called from a non-FreeRTOS thread (#1247)
This commit is contained in:
		
							parent
							
								
									29e817b70e
								
							
						
					
					
						commit
						15ec8b8995
					
				
							
								
								
									
										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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user