From 5b393fa5b52f2fc2f8f7e0688df86f8b80ab3331 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sun, 1 Mar 2015 13:50:55 +0100 Subject: score: Add thread acquire Update #2273. --- cpukit/score/include/rtems/score/threadimpl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (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 e5e51ec322..19c22bcc46 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -397,6 +397,24 @@ Thread_Control *_Thread_Get ( Objects_Locations *location ); +/** + * @brief Acquires a thread by its identifier. + * + * @see _Objects_Acquire(). + */ +Thread_Control *_Thread_Acquire( + Objects_Id id, + Objects_Locations *location, + ISR_lock_Context *lock_context +); + +/** + * @brief Acquires the executing thread. + * + * @see _Objects_Acquire(). + */ +Thread_Control *_Thread_Acquire_executing( ISR_lock_Context *lock_context ); + /** * @brief Cancel a blocking operation due to ISR. * -- cgit v1.2.3