mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 13:01:57 -04: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 );
|
||||
|
||||
pthread_cancel( pxThread->pthread );
|
||||
event_signal( pxThread->pthread );
|
||||
event_signal( pxThread->ev );
|
||||
pthread_join( pxThread->pthread, NULL );
|
||||
event_delete( pxThread->ev );
|
||||
}
|
||||
|
@ -387,17 +387,8 @@ static void * prvTimerTickHandler( void * arg )
|
|||
* signal to the active task to cause tick handling or
|
||||
* preemption (if enabled)
|
||||
*/
|
||||
TaskHandle_t hCurrentTask;
|
||||
Thread_t * thread;
|
||||
|
||||
hCurrentTask = xTaskGetCurrentTaskHandle();
|
||||
|
||||
if( hCurrentTask != NULL )
|
||||
{
|
||||
thread = prvGetThreadFromTask( hCurrentTask );
|
||||
pthread_kill( thread->pthread, SIGALRM );
|
||||
}
|
||||
|
||||
Thread_t * thread = prvGetThreadFromTask( xTaskGetCurrentTaskHandle() );
|
||||
pthread_kill( thread->pthread, SIGALRM );
|
||||
usleep( portTICK_RATE_MICROSECONDS );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue