mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-11 00:27:45 -04:00
Compare commits
2 commits
7e19a9c5eb
...
970726e5c5
Author | SHA1 | Date | |
---|---|---|---|
|
970726e5c5 | ||
|
32e581636f |
1 changed files with 2 additions and 2 deletions
4
portable/ThirdParty/GCC/Posix/port.c
vendored
4
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -140,6 +140,8 @@ static void prvThreadKeyDestructor( void * pvData )
|
||||||
static void prvInitThreadKey( void )
|
static void prvInitThreadKey( void )
|
||||||
{
|
{
|
||||||
pthread_key_create( &xThreadKey, prvThreadKeyDestructor );
|
pthread_key_create( &xThreadKey, prvThreadKeyDestructor );
|
||||||
|
/* Destroy xThreadKey when the process exits. */
|
||||||
|
atexit( prvDestroyThreadKey );
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -315,8 +317,6 @@ BaseType_t xPortStartScheduler( void )
|
||||||
/* Restore original signal mask. */
|
/* Restore original signal mask. */
|
||||||
( void ) pthread_sigmask( SIG_SETMASK, &xSchedulerOriginalSignalMask, NULL );
|
( void ) pthread_sigmask( SIG_SETMASK, &xSchedulerOriginalSignalMask, NULL );
|
||||||
|
|
||||||
prvDestroyThreadKey();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue