diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-11 08:35:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 11:00:28 +0100 |
commit | 50aef135a405a0dc26c39d7cfe7066f85b3dfbb5 (patch) | |
tree | 772b2944bdbd60ee514f04d78b5471fdbd71d480 /cpukit/include/rtems/score/threadimpl.h | |
parent | score: Remove thread timer earlier (diff) | |
download | rtems-50aef135a405a0dc26c39d7cfe7066f85b3dfbb5.tar.bz2 |
score: Add _Thread_MP_Extract_proxy()
Remove _Thread_queue_Extract_with_proxy() and move the proxy extraction
to _Thread_MP_Extract_proxy(). Move similar code blocks of the previous
caller of _Thread_queue_Extract_with_proxy() to helper functions.
Update #4546.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/threadimpl.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index 931de2c6be..dc41d28856 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -2690,5 +2690,32 @@ RTEMS_INLINE_ROUTINE void _Thread_Unpin( #include <rtems/score/threadmp.h> #endif +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @ingroup RTEMSScoreThread + * + * @brief Removes the watchdog timer from the thread and lets the thread + * continue its execution. + * + * @param[in, out] the_thread is the thread. + */ +RTEMS_INLINE_ROUTINE void _Thread_Timer_remove_and_continue( + Thread_Control *the_thread +) +{ + _Thread_Timer_remove( the_thread ); +#if defined(RTEMS_MULTIPROCESSING) + _Thread_MP_Extract_proxy( the_thread ); +#endif + _Thread_queue_Extract( the_thread ); +} + +#ifdef __cplusplus +} +#endif + #endif /* end of include file */ |