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/include/rtems | |
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/include/rtems')
-rw-r--r-- | cpukit/score/include/rtems/score/statesimpl.h | 2 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/threadimpl.h | 18 |
2 files changed, 3 insertions, 17 deletions
diff --git a/cpukit/score/include/rtems/score/statesimpl.h b/cpukit/score/include/rtems/score/statesimpl.h index 54052e2b74..596246c422 100644 --- a/cpukit/score/include/rtems/score/statesimpl.h +++ b/cpukit/score/include/rtems/score/statesimpl.h @@ -123,7 +123,7 @@ extern "C" { STATES_WAITING_FOR_SYSTEM_EVENT | \ STATES_INTERRUPTIBLE_BY_SIGNAL ) -/** All state bits set to one (provided for _Thread_Ready()) */ +/** All state bits set to one (provided for _Thread_Start()) */ #define STATES_ALL_SET 0xffffffff /** diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index cdd7f9b300..6f97ca9866 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -187,7 +187,8 @@ bool _Thread_Initialize( */ bool _Thread_Start( Thread_Control *the_thread, - const Thread_Entry_information *entry + const Thread_Entry_information *entry, + ISR_lock_Context *lock_context ); void _Thread_Restart_self( @@ -288,21 +289,6 @@ States_Control _Thread_Set_state( ); /** - * @brief Clears all thread states. - * - * In case the previous state is a non-ready state, then the thread is - * unblocked by the scheduler. - * - * @param[in] the_thread The thread. - */ -RTEMS_INLINE_ROUTINE void _Thread_Ready( - Thread_Control *the_thread -) -{ - _Thread_Clear_state( the_thread, STATES_ALL_SET ); -} - -/** * @brief Initializes enviroment for a thread. * * This routine initializes the context of @a the_thread to its |