diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-22 15:20:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-23 12:54:03 +0200 |
commit | 07332ae4db821ad8a11b1eda6fbb5b453ef069ef (patch) | |
tree | 7397f3276cc6fb06170919854c91852bc0fb75b1 /cpukit/score/src/threadqenqueue.c | |
parent | Filesystem: Remove superfluous free() (diff) | |
download | rtems-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/threadqenqueue.c')
-rw-r--r-- | cpukit/score/src/threadqenqueue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/score/src/threadqenqueue.c b/cpukit/score/src/threadqenqueue.c index 92d5546608..54f85f8075 100644 --- a/cpukit/score/src/threadqenqueue.c +++ b/cpukit/score/src/threadqenqueue.c @@ -28,11 +28,11 @@ void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, + Thread_Control *the_thread, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { - Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; Thread_blocking_operation_States (*enqueue_p)( @@ -41,8 +41,6 @@ void _Thread_queue_Enqueue_with_handler( ISR_Level * ); - the_thread = _Thread_Executing; - #if defined(RTEMS_MULTIPROCESSING) if ( _Thread_MP_Is_receive( the_thread ) && the_thread->receive_packet ) the_thread = _Thread_MP_Allocate_proxy( the_thread_queue->state ); |