summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coremsgsubmit.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-22 15:20:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-23 12:54:03 +0200
commit07332ae4db821ad8a11b1eda6fbb5b453ef069ef (patch)
tree7397f3276cc6fb06170919854c91852bc0fb75b1 /cpukit/score/src/coremsgsubmit.c
parentFilesystem: Remove superfluous free() (diff)
downloadrtems-07332ae4db821ad8a11b1eda6fbb5b453ef069ef.tar.bz2
score: _Thread_queue_Enqueue_with_handler()
Add thread parameter to _Thread_queue_Enqueue_with_handler() to avoid access to global _Thread_Executing.
Diffstat (limited to 'cpukit/score/src/coremsgsubmit.c')
-rw-r--r--cpukit/score/src/coremsgsubmit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c
index b0b4833640..3fc4f4ccd6 100644
--- a/cpukit/score/src/coremsgsubmit.c
+++ b/cpukit/score/src/coremsgsubmit.c
@@ -130,7 +130,11 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
executing->Wait.count = submit_type;
_ISR_Enable( level );
- _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
+ _Thread_queue_Enqueue(
+ &the_message_queue->Wait_queue,
+ executing,
+ timeout
+ );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;