mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
UPdate format
This commit is contained in:
parent
7ba4124c78
commit
3dade5b5a5
2
portable/ThirdParty/GCC/Posix/port.c
vendored
2
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -389,11 +389,13 @@ static void* prvTimerTickHandler(void *arg)
|
||||||
Thread_t * thread;
|
Thread_t * thread;
|
||||||
|
|
||||||
hCurrentTask = xTaskGetCurrentTaskHandle();
|
hCurrentTask = xTaskGetCurrentTaskHandle();
|
||||||
|
|
||||||
if( hCurrentTask != NULL )
|
if( hCurrentTask != NULL )
|
||||||
{
|
{
|
||||||
thread = prvGetThreadFromTask( hCurrentTask );
|
thread = prvGetThreadFromTask( hCurrentTask );
|
||||||
pthread_kill( thread->pthread, SIGALRM );
|
pthread_kill( thread->pthread, SIGALRM );
|
||||||
}
|
}
|
||||||
|
|
||||||
usleep( portTICK_RATE_MICROSECONDS );
|
usleep( portTICK_RATE_MICROSECONDS );
|
||||||
pthread_testcancel();
|
pthread_testcancel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue