From 07332ae4db821ad8a11b1eda6fbb5b453ef069ef Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 22 Aug 2013 15:20:06 +0200 Subject: score: _Thread_queue_Enqueue_with_handler() Add thread parameter to _Thread_queue_Enqueue_with_handler() to avoid access to global _Thread_Executing. --- cpukit/score/include/rtems/score/threadqimpl.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cpukit/score/include/rtems/score/threadqimpl.h') diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 3d801c8dff..c72982d1c3 100644 --- a/cpukit/score/include/rtems/score/threadqimpl.h +++ b/cpukit/score/include/rtems/score/threadqimpl.h @@ -83,9 +83,10 @@ Thread_Control *_Thread_queue_Dequeue( * This routine enqueues the currently executing thread on * the_thread_queue with an optional timeout. */ -#define _Thread_queue_Enqueue( _the_thread_queue, _timeout ) \ +#define _Thread_queue_Enqueue( _the_thread_queue, _the_thread, _timeout ) \ _Thread_queue_Enqueue_with_handler( \ _the_thread_queue, \ + _the_thread, \ _timeout, \ _Thread_queue_Timeout ) @@ -96,15 +97,17 @@ Thread_Control *_Thread_queue_Dequeue( * starts a timeout timer. * * @param[in] the_thread_queue pointer to threadq + * @param[in] the_thread the thread to enqueue * @param[in] timeout interval to wait * * - INTERRUPT LATENCY: * + single case */ void _Thread_queue_Enqueue_with_handler( - Thread_queue_Control* the_thread_queue, - Watchdog_Interval timeout, - Thread_queue_Timeout_callout handler + Thread_queue_Control *the_thread_queue, + Thread_Control *the_thread, + Watchdog_Interval timeout, + Thread_queue_Timeout_callout handler ); /** -- cgit v1.2.3