mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
Fix: uncomment commented out code
This commit is contained in:
parent
7d21662033
commit
62598e9bfb
1 changed files with 3 additions and 1 deletions
4
portable/ThirdParty/GCC/Posix/port.c
vendored
4
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -211,6 +211,7 @@ void vPortEndScheduler( void )
|
||||||
{
|
{
|
||||||
struct itimerval itimer;
|
struct itimerval itimer;
|
||||||
struct sigaction sigtick;
|
struct sigaction sigtick;
|
||||||
|
Thread_t *xCurrentThread;
|
||||||
|
|
||||||
/* Stop the timer and ignore any pending SIGALRMs that would end
|
/* Stop the timer and ignore any pending SIGALRMs that would end
|
||||||
* up running on the main thread when it is resumed. */
|
* up running on the main thread when it is resumed. */
|
||||||
|
@ -230,7 +231,8 @@ struct sigaction sigtick;
|
||||||
xSchedulerEnd = pdTRUE;
|
xSchedulerEnd = pdTRUE;
|
||||||
(void)pthread_kill( hMainThread, SIG_RESUME );
|
(void)pthread_kill( hMainThread, SIG_RESUME );
|
||||||
|
|
||||||
//prvSuspendSelf();
|
xCurrentThread = prvGetThreadFromTask( xTaskGetCurrentTaskHandle() );
|
||||||
|
prvSuspendSelf(xCurrentThread);
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue