Release 6.1.9
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
/** */
|
||||
/** ThreadX Component */
|
||||
/** */
|
||||
/** ThreadX Component */
|
||||
/** */
|
||||
/** Thread */
|
||||
/** */
|
||||
@@ -30,45 +30,47 @@
|
||||
#include "tx_thread.h"
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _tx_thread_wait_abort PORTABLE C */
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _tx_thread_wait_abort PORTABLE C */
|
||||
/* 6.1 */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
/* William E. Lamie, Microsoft Corporation */
|
||||
/* */
|
||||
/* DESCRIPTION */
|
||||
/* */
|
||||
/* This function aborts the wait condition that the specified thread */
|
||||
/* is in - regardless of what object the thread is waiting on - and */
|
||||
/* returns a TX_WAIT_ABORTED status to the specified thread. */
|
||||
/* */
|
||||
/* INPUT */
|
||||
/* */
|
||||
/* thread_ptr Thread to abort the wait on */
|
||||
/* */
|
||||
/* OUTPUT */
|
||||
/* */
|
||||
/* status Return completion status */
|
||||
/* */
|
||||
/* CALLS */
|
||||
/* */
|
||||
/* Suspension Cleanup Functions */
|
||||
/* _tx_thread_system_resume */
|
||||
/* _tx_thread_system_ni_resume Non-interruptable resume thread */
|
||||
/* */
|
||||
/* CALLED BY */
|
||||
/* */
|
||||
/* Application code */
|
||||
/* */
|
||||
/* RELEASE HISTORY */
|
||||
/* */
|
||||
/* */
|
||||
/* This function aborts the wait condition that the specified thread */
|
||||
/* is in - regardless of what object the thread is waiting on - and */
|
||||
/* returns a TX_WAIT_ABORTED status to the specified thread. */
|
||||
/* */
|
||||
/* INPUT */
|
||||
/* */
|
||||
/* thread_ptr Thread to abort the wait on */
|
||||
/* */
|
||||
/* OUTPUT */
|
||||
/* */
|
||||
/* status Return completion status */
|
||||
/* */
|
||||
/* CALLS */
|
||||
/* */
|
||||
/* Suspension Cleanup Functions */
|
||||
/* _tx_thread_system_resume */
|
||||
/* _tx_thread_system_ni_resume Non-interruptable resume thread */
|
||||
/* */
|
||||
/* CALLED BY */
|
||||
/* */
|
||||
/* Application code */
|
||||
/* */
|
||||
/* RELEASE HISTORY */
|
||||
/* */
|
||||
/* DATE NAME DESCRIPTION */
|
||||
/* */
|
||||
/* 09-30-2020 William E. Lamie Initial Version 6.1 */
|
||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
||||
/* 09-30-2020 Yuxin Zhou Modified comment(s), */
|
||||
/* resulting in version 6.1 */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
UINT _tx_thread_wait_abort(TX_THREAD *thread_ptr)
|
||||
@@ -93,17 +95,17 @@ ULONG suspension_sequence;
|
||||
/* Determine if the thread is currently suspended. */
|
||||
if (thread_ptr -> tx_thread_state < TX_SLEEP)
|
||||
{
|
||||
|
||||
/* Thread is either ready, completed, terminated, or in a pure
|
||||
|
||||
/* Thread is either ready, completed, terminated, or in a pure
|
||||
suspension condition. */
|
||||
|
||||
/* Restore interrupts. */
|
||||
TX_RESTORE
|
||||
|
||||
/* Just return with an error message to indicate that
|
||||
/* Just return with an error message to indicate that
|
||||
nothing was done. */
|
||||
status = TX_WAIT_ABORT_ERROR;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -134,7 +136,7 @@ ULONG suspension_sequence;
|
||||
{
|
||||
|
||||
/* Process all other suspension timeouts. */
|
||||
|
||||
|
||||
/* Set the state to suspended. */
|
||||
thread_ptr -> tx_thread_state = TX_SUSPENDED;
|
||||
|
||||
@@ -211,11 +213,11 @@ ULONG suspension_sequence;
|
||||
/* Restore interrupts. */
|
||||
TX_RESTORE
|
||||
|
||||
#else
|
||||
#else
|
||||
|
||||
/* Disable interrupts. */
|
||||
TX_DISABLE
|
||||
|
||||
|
||||
/* Decrement the disable preemption flag. */
|
||||
_tx_thread_preempt_disable--;
|
||||
|
||||
@@ -223,7 +225,7 @@ ULONG suspension_sequence;
|
||||
TX_RESTORE
|
||||
#endif
|
||||
|
||||
/* Return with an error message to indicate that
|
||||
/* Return with an error message to indicate that
|
||||
nothing was done. */
|
||||
status = TX_WAIT_ABORT_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user