From 6de1f92121f947f9c379747d66135fd8a500d0f5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Oct 2017 13:41:25 +0200 Subject: score: Add _Thread_Continue() Update #3117. Update #3182. --- cpukit/score/include/rtems/score/threadimpl.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 8c87f98cb8..5f6a5eb2d0 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -1840,12 +1840,26 @@ RTEMS_INLINE_ROUTINE Status_Control _Thread_Wait_get_status( return (Status_Control) the_thread->Wait.return_code; } +/** + * @brief Cancels a blocking operation so that the thread can continue its + * execution. + * + * In case this function actually cancelled the blocking operation, then the + * thread wait return code is set to the specified status. + * + * A specialization of this function is _Thread_Timeout(). + * + * @param[in] the_thread The thread. + * @param[in] status The thread wait status. + */ +void _Thread_Continue( Thread_Control *the_thread, Status_Control status ); + /** * @brief General purpose thread wait timeout. * - * @param[in] watchdog The thread timer watchdog. + * @param[in] the_watchdog The thread timer watchdog. */ -void _Thread_Timeout( Watchdog_Control *watchdog ); +void _Thread_Timeout( Watchdog_Control *the_watchdog ); RTEMS_INLINE_ROUTINE void _Thread_Timer_initialize( Thread_Timer_information *timer, -- cgit v1.2.3