Ordered list of time stamp nodes. More...
#include <os-lists.h>
Inherits os::utils::double_list.
Public Member Functions | |
Constructors & Destructor | |
clock_timestamps_list () | |
Construct a list of clock time stamps. More... | |
~clock_timestamps_list () | |
Destruct the list. More... | |
Public Member Functions | |
void | link (timestamp_node &node) |
Add a new thread node to the list. More... | |
volatile timestamp_node * | head (void) const |
Get list head. More... | |
void | check_timestamp (port::clock::timestamp_t now) |
Check list time stamps. More... | |
Public Member Functions | |
bool | uninitialized (void) const |
Check if the list is unitialised. More... | |
void | clear (void) |
Clear the list. More... | |
bool | empty (void) const |
Check if the list is empty. More... | |
volatile static_double_list_links * | tail (void) const |
Get the list tail. More... | |
Protected Member Functions | |
Private Member Functions | |
void | insert_after (static_double_list_links &node, static_double_list_links *after) |
Insert a new node after existing node. More... | |
Protected Attributes | |
Private Member Variables | |
static_double_list_links | head_ |
A list node used to point to head and tail. More... | |
Ordered list of time stamp nodes.
Definition at line 657 of file os-lists.h.
|
inline |
Construct a list of clock time stamps.
Definition at line 958 of file os-lists.h.
|
inline |
Destruct the list.
Definition at line 964 of file os-lists.h.
void os::rtos::internal::clock_timestamps_list::check_timestamp | ( | port::clock::timestamp_t | now | ) |
Check list time stamps.
[in] | now | The current clock time stamp. |
With the list ordered, check if the list head time stamp was reached and run the node action.
Repeat for all nodes that have overdue time stamps.
Definition at line 447 of file os-lists.cpp.
|
inherited |
|
inlineinherited |
|
inline |
Get list head.
Definition at line 970 of file os-lists.h.
|
protectedinherited |
void os::rtos::internal::clock_timestamps_list::link | ( | timestamp_node & | node | ) |
Add a new thread node to the list.
[in] | node | Reference to a list node. |
The list is kept in ascending time stamp order.
Based on time stamp, the node is inserted
To satisfy the circular double linked list requirements, an empty list still contains the head node with references to itself.
Definition at line 384 of file os-lists.cpp.
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |