diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-08-31 13:00:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-01 21:23:16 +0200 |
commit | ac9f115bdba9a368ceacb8cfd61a95d355025651 (patch) | |
tree | 1cc513798cc90ca18b083fcfc3e32d7769fb195b /cpukit/include | |
parent | score: Remove _Thread_queue_First_locked() (diff) | |
download | rtems-ac9f115bdba9a368ceacb8cfd61a95d355025651.tar.bz2 |
score: Remove _Thread_queue_Unblock_critical()
This function was only used in one place. Replace it with a call to
_Thread_queue_Resume().
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/score/threadqimpl.h | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/cpukit/include/rtems/score/threadqimpl.h b/cpukit/include/rtems/score/threadqimpl.h index 19d9704dec..f42c67cc47 100644 --- a/cpukit/include/rtems/score/threadqimpl.h +++ b/cpukit/include/rtems/score/threadqimpl.h @@ -938,13 +938,12 @@ Status_Control _Thread_queue_Enqueue_sticky( * @param[in, out] the_thread The thread to extract. * @param[in, out] queue_context The thread queue context. * - * @return Returns the unblock indicator for _Thread_queue_Unblock_critical(). - * True indicates, that this thread must be unblocked by the scheduler later in - * _Thread_queue_Unblock_critical(), and false otherwise. In case false is - * returned, then the thread queue enqueue procedure was interrupted. Thus it - * will unblock itself and the thread wait information is no longer accessible, - * since this thread may already block on another resource in an SMP - * configuration. + * @return Returns the unblock indicator. True indicates, that this thread + * must be unblocked by the scheduler using _Thread_Remove_timer_and_unblock(), + * and false otherwise. In case false is returned, then the thread queue + * enqueue procedure was interrupted. Thus it will unblock itself and the + * thread wait information is no longer accessible, since this thread may + * already block on another resource in an SMP configuration. */ bool _Thread_queue_Extract_locked( Thread_queue_Queue *queue, @@ -954,27 +953,6 @@ bool _Thread_queue_Extract_locked( ); /** - * @brief Unblocks the thread which was on the thread queue before. - * - * The caller must be the owner of the thread queue lock. This function will - * release the thread queue lock. Thread dispatching is disabled before the - * thread queue lock is released and an unblock is necessary. Thread - * dispatching is enabled once the sequence to unblock the thread is complete. - * - * @param unblock The unblock indicator returned by - * _Thread_queue_Extract_locked(). - * @param queue The actual thread queue. - * @param[in, out] the_thread The thread to extract. - * @param[in, out] lock_context The lock context of the lock acquire. - */ -void _Thread_queue_Unblock_critical( - bool unblock, - Thread_queue_Queue *queue, - Thread_Control *the_thread, - ISR_lock_Context *lock_context -); - -/** * @brief Resumes the extracted or surrendered thread. * * This function makes the thread ready again. If necessary, the thread is |