mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	Revert pthread_attr_setstacksize
This commit is contained in:
		
							parent
							
								
									b6c0c51cbe
								
							
						
					
					
						commit
						62220666ba
					
				
							
								
								
									
										8
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
									
									
									
										vendored
									
									
								
							@ -169,15 +169,13 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
 | 
			
		||||
    thread->pvParams = pvParameters;
 | 
			
		||||
    thread->xDying = pdFALSE;
 | 
			
		||||
 | 
			
		||||
    /* Ensure ulStackSize is at least PTHREAD_STACK_MIN */
 | 
			
		||||
    ulStackSize = ( ulStackSize < PTHREAD_STACK_MIN ) ? PTHREAD_STACK_MIN : ulStackSize;
 | 
			
		||||
 | 
			
		||||
    pthread_attr_init( &xThreadAttributes );
 | 
			
		||||
    iRet = pthread_attr_setstacksize( &xThreadAttributes, ulStackSize );
 | 
			
		||||
    iRet = pthread_attr_setstack( &xThreadAttributes, pxEndOfStack, ulStackSize );
 | 
			
		||||
 | 
			
		||||
    if( iRet != 0 )
 | 
			
		||||
    {
 | 
			
		||||
        fprintf( stderr, "[WARN] pthread_attr_setstacksize failed with return value: %d. Default stack size will be used.\n", iRet );
 | 
			
		||||
        fprintf( stderr, "[WARN] pthread_attr_setstack failed with return value: %d. Default stack will be used.\n", iRet );
 | 
			
		||||
        fprintf( stderr, "[WARN] Increase the stack size to PTHREAD_STACK_MIN.\n" );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    thread->ev = event_create();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user