mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Revert timer tick function
This commit is contained in:
		
							parent
							
								
									5ed9c7022b
								
							
						
					
					
						commit
						b6c0c51cbe
					
				
							
								
								
									
										15
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
									
									
									
										vendored
									
									
								
							@ -255,7 +255,7 @@ BaseType_t xPortStartScheduler( void )
 | 
				
			|||||||
        Thread_t * pxThread = ( Thread_t * ) listGET_LIST_ITEM_OWNER( pxIterator );
 | 
					        Thread_t * pxThread = ( Thread_t * ) listGET_LIST_ITEM_OWNER( pxIterator );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pthread_cancel( pxThread->pthread );
 | 
					        pthread_cancel( pxThread->pthread );
 | 
				
			||||||
        event_signal( pxThread->pthread );
 | 
					        event_signal( pxThread->ev );
 | 
				
			||||||
        pthread_join( pxThread->pthread, NULL );
 | 
					        pthread_join( pxThread->pthread, NULL );
 | 
				
			||||||
        event_delete( pxThread->ev );
 | 
					        event_delete( pxThread->ev );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -387,17 +387,8 @@ static void * prvTimerTickHandler( void * arg )
 | 
				
			|||||||
         * signal to the active task to cause tick handling or
 | 
					         * signal to the active task to cause tick handling or
 | 
				
			||||||
         * preemption (if enabled)
 | 
					         * preemption (if enabled)
 | 
				
			||||||
         */
 | 
					         */
 | 
				
			||||||
        TaskHandle_t hCurrentTask;
 | 
					        Thread_t * thread = prvGetThreadFromTask( xTaskGetCurrentTaskHandle() );
 | 
				
			||||||
        Thread_t * thread;
 | 
					        pthread_kill( thread->pthread, SIGALRM );
 | 
				
			||||||
 | 
					 | 
				
			||||||
        hCurrentTask = xTaskGetCurrentTaskHandle();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if( hCurrentTask != NULL )
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            thread = prvGetThreadFromTask( hCurrentTask );
 | 
					 | 
				
			||||||
            pthread_kill( thread->pthread, SIGALRM );
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        usleep( portTICK_RATE_MICROSECONDS );
 | 
					        usleep( portTICK_RATE_MICROSECONDS );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user