Double linked list node, with time stamp and thread. More...
#include <os-lists.h>
Public Member Functions | |
Constructors & Destructor | |
timeout_thread_node (port::clock::timestamp_t ts, thread &th) | |
Construct a clock timeout node. | |
virtual | ~timeout_thread_node () override |
Destruct the node. | |
Public Member Functions | |
virtual void | action (void) override |
Action to perform when the time stamp is reached. | |
Public Member Functions | |
void | unlink (void) |
Remove the node from the list. | |
bool | unlinked (void) |
Check if the node is unlinked. | |
static_double_list_links * | next (void) const |
void | next (static_double_list_links *n) |
static_double_list_links * | prev (void) const |
void | prev (static_double_list_links *n) |
Public Attributes | |
Public Member Variables | |
rtos::thread & | thread |
Reference to thread who initiated the timeout. | |
Public Member Variables | |
port::clock::timestamp_t | timestamp |
Time stamp when the next action will be performed. | |
Protected Attributes | |
Private Member Variables | |
static_double_list_links * | prev_ |
Pointer to previous node. | |
static_double_list_links * | next_ |
Pointer to next node. | |
Double linked list node, with time stamp and thread.
Definition at line 226 of file os-lists.h.
os::rtos::internal::timeout_thread_node::timeout_thread_node | ( | port::clock::timestamp_t | ts, |
rtos::thread & | th | ||
) |
Construct a clock timeout node.
[in] | ts | Time stamp. |
[in] | th | Reference to thread. |
Definition at line 309 of file os-lists.cpp.
|
overridevirtual |
Destruct the node.
Definition at line 320 of file os-lists.cpp.
|
overridevirtual |
Action to perform when the time stamp is reached.
Implements os::rtos::internal::timestamp_node.
Definition at line 329 of file os-lists.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
rtos::thread& os::rtos::internal::timeout_thread_node::thread |
Reference to thread who initiated the timeout.
Definition at line 298 of file os-lists.h.
|
inherited |
Time stamp when the next action will be performed.
Definition at line 208 of file os-lists.h.