diff options
Diffstat (limited to 'cpukit/posix/src/key.c')
-rw-r--r-- | cpukit/posix/src/key.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index 389a28b878..0bc88ae902 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -111,8 +111,18 @@ static void _POSIX_Keys_Run_destructors( Thread_Control *the_thread ) } } +static void _POSIX_Keys_Restart_run_destructors( + Thread_Control *executing, + Thread_Control *the_thread +) +{ + (void) executing; + _POSIX_Keys_Run_destructors( the_thread ); +} + static User_extensions_Control _POSIX_Keys_Extensions = { .Callouts = { + .thread_restart = _POSIX_Keys_Restart_run_destructors, .thread_terminate = _POSIX_Keys_Run_destructors } }; |