diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-26 11:06:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-26 11:20:45 +0100 |
commit | 6f6da82ca0b57ed1c42050f8103c2ea2adb3d3e2 (patch) | |
tree | 0a2384e1eed6247010b5d890d078212227956a2a /cpukit/score/include/rtems/score/userextimpl.h | |
parent | sapi: Add rtems_task_terminate_extension (diff) | |
download | rtems-6f6da82ca0b57ed1c42050f8103c2ea2adb3d3e2.tar.bz2 |
score: Fix user extensions order
Use forward and reverse order for initial and dynamic extensions. This
is the behaviour documented in the C Users Guide. Change thread
terminate order to backward to be in line with the thread delete order.
Change fatal error order to forward to ensure that initial extensions
are called first due the peculiar execution context of fatal error
extensions, see _Terminate() documentation.
Update #2692.
Diffstat (limited to 'cpukit/score/include/rtems/score/userextimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/userextimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/userextimpl.h b/cpukit/score/include/rtems/score/userextimpl.h index 6684c4a264..5ad2c63765 100644 --- a/cpukit/score/include/rtems/score/userextimpl.h +++ b/cpukit/score/include/rtems/score/userextimpl.h @@ -307,7 +307,7 @@ static inline void _User_extensions_Fatal( _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor, - CHAIN_ITERATOR_BACKWARD + CHAIN_ITERATOR_FORWARD ); } @@ -318,7 +318,7 @@ static inline void _User_extensions_Thread_terminate( _User_extensions_Iterate( executing, _User_extensions_Thread_terminate_visitor, - CHAIN_ITERATOR_FORWARD + CHAIN_ITERATOR_BACKWARD ); } |