Ordered list of time stamp nodes.
More...
#include <os-lists.h>
|
|
void | insert_after (static_double_list_links &node, static_double_list_links *after) |
| Insert a new node after existing node.
|
|
|
|
static_double_list_links | head_ |
| A list node used to point to head and tail.
|
|
Ordered list of time stamp nodes.
Definition at line 670 of file os-lists.h.
◆ clock_timestamps_list()
os::rtos::internal::clock_timestamps_list::clock_timestamps_list |
( |
| ) |
|
|
inline |
Construct a list of clock time stamps.
Definition at line 970 of file os-lists.h.
◆ ~clock_timestamps_list()
os::rtos::internal::clock_timestamps_list::~clock_timestamps_list |
( |
| ) |
|
|
inline |
◆ check_timestamp()
Check list time stamps.
- Parameters
-
[in] | now | The current clock time stamp. |
- Returns
- Nothing.
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 455 of file os-lists.cpp.
◆ clear()
void os::utils::static_double_list::clear |
( |
void |
| ) |
|
|
inherited |
Clear the list.
- Parameters
- None.
- Returns
- Nothing.
Initialise the mandatory node with links to itself.
Definition at line 116 of file lists.cpp.
◆ empty()
bool os::utils::static_double_list::empty |
( |
void |
| ) |
const |
|
inlineinherited |
Check if the list is empty.
- Parameters
- None.
- Return values
-
true | The list has no nodes. |
false | The list has at least one node. |
Definition at line 1049 of file lists.h.
◆ head()
volatile timestamp_node * os::rtos::internal::clock_timestamps_list::head |
( |
void |
| ) |
const |
|
inline |
Get list head.
- Parameters
- None.
- Returns
- Casted pointer to head node.
Definition at line 982 of file os-lists.h.
◆ insert_after()
Insert a new node after existing node.
- Parameters
-
node | Reference to node to insert. |
after | Reference to existing node. |
- Returns
- Nothing.
Definition at line 123 of file lists.cpp.
◆ link()
void os::rtos::internal::clock_timestamps_list::link |
( |
timestamp_node & |
node | ) |
|
Add a new thread node to the list.
- Parameters
-
[in] | node | Reference to a list node. |
- Returns
- Nothing.
The list is kept in ascending time stamp order.
Based on time stamp, the node is inserted
- at the end of the list,
- at the beginning of the list,
- in the middle of the list, which requires a partial list traversal (done from the end).
To satisfy the circular double linked list requirements, an empty list still contains the head node with references to itself.
Definition at line 392 of file os-lists.cpp.
◆ tail()
volatile static_double_list_links * os::utils::static_double_list::tail |
( |
void |
| ) |
const |
|
inlineinherited |
Get the list tail.
- Parameters
- None.
- Returns
- Pointer to tail node.
Definition at line 1062 of file lists.h.
◆ uninitialized()
bool os::utils::static_double_list::uninitialized |
( |
void |
| ) |
const |
|
inlineinherited |
Check if the list is uninitialised.
- Parameters
- None.
- Return values
-
true | The list was not initialised. |
false | The list was initialised. |
Definition at line 1042 of file lists.h.
◆ head_
static_double_list_links os::utils::static_double_list::head_ |
|
protectedinherited |
A list node used to point to head and tail.
To simplify processing, the list always has a node.
Definition at line 498 of file lists.h.
The documentation for this class was generated from the following files: