diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-28 10:45:38 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-12-05 18:07:04 +0100 |
commit | 04b5d174a4def46c0f667207119f2f5b83e247b4 (patch) | |
tree | 2c622c7c19c4b242c077a7c8a2e5f7242b77199c /cpukit/posix | |
parent | score: Add _Chain_Append_if_is_off_chain_*() (diff) | |
download | rtems-04b5d174a4def46c0f667207119f2f5b83e247b4.tar.bz2 |
score: Add API extensions post switch list
Move post switch hook from API_extensions_Control to new
API_extensions_Post_switch_control. Rename
_API_extensions_Run_postswitch() in _API_extensions_Run_post_switch().
Add _API_extensions_Post_switch_list and
_API_extensions_Add_post_switch().
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/pthread.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index cd2cffec9e..e6f928941d 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -305,12 +305,14 @@ static void _POSIX_Threads_Initialize_user_threads( void ) * API Extension control structures */ API_extensions_Control _POSIX_Threads_API_extensions = { - { NULL, NULL }, #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) - NULL, /* predriver */ + .predriver_hook = NULL, #endif - _POSIX_Threads_Initialize_user_threads, /* postdriver */ - _POSIX_signals_Post_switch_extension, /* post switch */ + .postdriver_hook = _POSIX_Threads_Initialize_user_threads +}; + +API_extensions_Post_switch_control _POSIX_Threads_API_extensions_post_switch = { + .hook = _POSIX_signals_Post_switch_extension }; User_extensions_Control _POSIX_Threads_User_extensions = { @@ -357,6 +359,7 @@ void _POSIX_Threads_Manager_initialization(void) _User_extensions_Add_API_set( &_POSIX_Threads_User_extensions ); _API_extensions_Add( &_POSIX_Threads_API_extensions ); + _API_extensions_Add_post_switch( &_POSIX_Threads_API_extensions_post_switch ); /* * If we supported MP, then here we would ... |