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/include/rtems/score/threadqimpl.h | |
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 '')
-rw-r--r-- | cpukit/score/include/rtems/score/threadqimpl.h | 11 |
1 files changed, 7 insertions, 4 deletions
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 ); /** |