diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 10:03:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 10:03:48 +0200 |
commit | db3a3decbd387a5f9bbac7089caa479c75589b74 (patch) | |
tree | c8009e93b4baa75b4faa6724d834911ef5c11291 /cpukit/score/include/rtems/score/threadqimpl.h | |
parent | posix: Unconditional thread attribute support (diff) | |
download | rtems-db3a3decbd387a5f9bbac7089caa479c75589b74.tar.bz2 |
score: Add _Thread_queue_Dispatch_disable()
Diffstat (limited to 'cpukit/score/include/rtems/score/threadqimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/threadqimpl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index c4a22a5def..60067076c7 100644 --- a/cpukit/score/include/rtems/score/threadqimpl.h +++ b/cpukit/score/include/rtems/score/threadqimpl.h @@ -26,6 +26,7 @@ #include <rtems/score/smp.h> #include <rtems/score/status.h> #include <rtems/score/thread.h> +#include <rtems/score/threaddispatch.h> #if defined(RTEMS_DEBUG) #include <string.h> @@ -277,6 +278,15 @@ RTEMS_INLINE_ROUTINE void _Thread_queue_Context_set_ISR_level( ); } +RTEMS_INLINE_ROUTINE Per_CPU_Control *_Thread_queue_Dispatch_disable( + Thread_queue_Context *queue_context +) +{ + return _Thread_Dispatch_disable_critical( + &queue_context->Lock_context.Lock_context + ); +} + /** * @brief Sets the MP callout in the thread queue context. * |