Release 6.1.9
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
/** */
|
||||
/** ThreadX Component */
|
||||
/** */
|
||||
/** ThreadX Component */
|
||||
/** */
|
||||
/** Timer */
|
||||
/** */
|
||||
@@ -29,43 +29,43 @@
|
||||
#include "tx_timer.h"
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _tx_timer_system_activate PORTABLE C */
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _tx_timer_system_activate PORTABLE C */
|
||||
/* 6.1 */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
/* William E. Lamie, Microsoft Corporation */
|
||||
/* */
|
||||
/* DESCRIPTION */
|
||||
/* */
|
||||
/* This function places the specified internal timer in the proper */
|
||||
/* place in the timer expiration list. If the timer is already active */
|
||||
/* this function does nothing. */
|
||||
/* */
|
||||
/* INPUT */
|
||||
/* */
|
||||
/* timer_ptr Pointer to timer control block */
|
||||
/* */
|
||||
/* OUTPUT */
|
||||
/* */
|
||||
/* TX_SUCCESS Always returns success */
|
||||
/* */
|
||||
/* CALLS */
|
||||
/* */
|
||||
/* None */
|
||||
/* */
|
||||
/* CALLED BY */
|
||||
/* */
|
||||
/* _tx_thread_system_suspend Thread suspend function */
|
||||
/* _tx_thread_system_ni_suspend Non-interruptable suspend thread */
|
||||
/* _tx_timer_thread_entry Timer thread processing */
|
||||
/* _tx_timer_activate Application timer activate */
|
||||
/* */
|
||||
/* RELEASE HISTORY */
|
||||
/* */
|
||||
/* */
|
||||
/* This function places the specified internal timer in the proper */
|
||||
/* place in the timer expiration list. If the timer is already active */
|
||||
/* this function does nothing. */
|
||||
/* */
|
||||
/* INPUT */
|
||||
/* */
|
||||
/* timer_ptr Pointer to timer control block */
|
||||
/* */
|
||||
/* OUTPUT */
|
||||
/* */
|
||||
/* TX_SUCCESS Always returns success */
|
||||
/* */
|
||||
/* CALLS */
|
||||
/* */
|
||||
/* None */
|
||||
/* */
|
||||
/* CALLED BY */
|
||||
/* */
|
||||
/* _tx_thread_system_suspend Thread suspend function */
|
||||
/* _tx_thread_system_ni_suspend Non-interruptable suspend thread */
|
||||
/* _tx_timer_thread_entry Timer thread processing */
|
||||
/* _tx_timer_activate Application timer activate */
|
||||
/* */
|
||||
/* RELEASE HISTORY */
|
||||
/* */
|
||||
/* DATE NAME DESCRIPTION */
|
||||
/* */
|
||||
/* 09-30-2020 William E. Lamie Initial Version 6.1 */
|
||||
@@ -88,11 +88,11 @@ ULONG expiration_time;
|
||||
/* Determine if there is a timer to activate. */
|
||||
if (remaining_ticks != ((ULONG) 0))
|
||||
{
|
||||
|
||||
|
||||
/* Determine if the timer is set to wait forever. */
|
||||
if (remaining_ticks != TX_WAIT_FOREVER)
|
||||
{
|
||||
|
||||
|
||||
/* Valid timer activate request. */
|
||||
|
||||
/* Determine if the timer still needs activation. */
|
||||
@@ -119,7 +119,7 @@ ULONG expiration_time;
|
||||
|
||||
/* At this point, we are ready to put the timer on one of
|
||||
the timer lists. */
|
||||
|
||||
|
||||
/* Calculate the proper place for the timer. */
|
||||
timer_list = TX_TIMER_POINTER_ADD(_tx_timer_current_ptr, expiration_time);
|
||||
if (TX_TIMER_INDIRECT_TO_VOID_POINTER_CONVERT(timer_list) >= TX_TIMER_INDIRECT_TO_VOID_POINTER_CONVERT(_tx_timer_list_end))
|
||||
@@ -129,11 +129,11 @@ ULONG expiration_time;
|
||||
delta = TX_TIMER_POINTER_DIF(timer_list, _tx_timer_list_end);
|
||||
timer_list = TX_TIMER_POINTER_ADD(_tx_timer_list_start, delta);
|
||||
}
|
||||
|
||||
|
||||
/* Now put the timer on this list. */
|
||||
if ((*timer_list) == TX_NULL)
|
||||
{
|
||||
|
||||
|
||||
/* This list is NULL, just put the new timer on it. */
|
||||
|
||||
/* Setup the links in this timer. */
|
||||
@@ -142,7 +142,7 @@ ULONG expiration_time;
|
||||
|
||||
/* Setup the list head pointer. */
|
||||
*timer_list = timer_ptr;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user