diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-13 14:07:23 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:39 +0200 |
commit | 33829ce155069462ba410d396da431386369ed08 (patch) | |
tree | bd4d700e4a567280c6b2aa3e8f43c3997d20d9e7 /cpukit/score/src/mpci.c | |
parent | posix: Rework pthread_join() (diff) | |
download | rtems-33829ce155069462ba410d396da431386369ed08.tar.bz2 |
score: Avoid Giant lock for _Thread_Start()
Update #2555.
Diffstat (limited to 'cpukit/score/src/mpci.c')
-rw-r--r-- | cpukit/score/src/mpci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 57eb5f3991..8eec2782c0 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -134,7 +134,8 @@ static void _MPCI_Create_server( void ) } } }; - Objects_Name name; + ISR_lock_Context lock_context; + Objects_Name name; if ( !_System_state_Is_multiprocessing ) @@ -164,7 +165,8 @@ static void _MPCI_Create_server( void ) name ); - _Thread_Start( _MPCI_Receive_server_tcb, &entry ); + _ISR_lock_ISR_disable( &lock_context ); + _Thread_Start( _MPCI_Receive_server_tcb, &entry, &lock_context ); } static void _MPCI_Initialization( void ) |