diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-18 16:00:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:56:59 +0200 |
commit | 33a4a56e7f2c52148bfd09cdcb7371d9b1b37eb5 (patch) | |
tree | 63951d498925df25b7d2dbd93a95e1645c6fab2c /cpukit/score/src/coremsgsubmit.c | |
parent | score: Create message queue implementation header (diff) | |
download | rtems-33a4a56e7f2c52148bfd09cdcb7371d9b1b37eb5.tar.bz2 |
score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter. Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
Diffstat (limited to 'cpukit/score/src/coremsgsubmit.c')
-rw-r--r-- | cpukit/score/src/coremsgsubmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index c5e9a6b621..6acaadab89 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -30,6 +30,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit( CORE_message_queue_Control *the_message_queue, + Thread_Control *executing, const void *buffer, size_t size, Objects_Id id, @@ -122,7 +123,6 @@ CORE_message_queue_Status _CORE_message_queue_Submit( * would be to use this variable prior to here. */ { - Thread_Control *executing = _Thread_Executing; ISR_Level level; _ISR_Disable( level ); |