µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::internal::terminated_threads_list Class Reference

Unordered list of threads. More...

#include <os-lists.h>

+ Inheritance diagram for os::rtos::internal::terminated_threads_list:

Public Member Functions

Constructors & Destructor
 terminated_threads_list ()
 Construct a list of waiting threads.
 
 ~terminated_threads_list ()
 Destruct the list.
 
Public Member Functions
void link (waiting_thread_node &node)
 Add a new thread node to the list.
 
volatile waiting_thread_nodehead (void) const
 Get list head.
 
Public Member Functions
bool uninitialized (void) const
 Check if the list is uninitialised.
 
void clear (void)
 Clear the list.
 
bool empty (void) const
 Check if the list is empty.
 
volatile static_double_list_links * tail (void) const
 Get the list tail.
 

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.
 

Protected Attributes

Private Member Variables
static_double_list_links head_
 A list node used to point to head and tail.
 

Detailed Description

Unordered list of threads.

Definition at line 752 of file os-lists.h.

Constructor & Destructor Documentation

◆ terminated_threads_list()

os::rtos::internal::terminated_threads_list::terminated_threads_list ( )
inline

Construct a list of waiting threads.

The initial list status is empty.

Definition at line 994 of file os-lists.h.

◆ ~terminated_threads_list()

os::rtos::internal::terminated_threads_list::~terminated_threads_list ( )
inline

Destruct the list.

Definition at line 1000 of file os-lists.h.

Member Function Documentation

◆ 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
trueThe list has no nodes.
falseThe list has at least one node.

Definition at line 1049 of file lists.h.

◆ head()

volatile waiting_thread_node * os::rtos::internal::terminated_threads_list::head ( void  ) const
inline

Get list head.

Parameters
None.
Returns
Casted pointer to head node.

Definition at line 1006 of file os-lists.h.

◆ insert_after()

void os::utils::static_double_list::insert_after ( static_double_list_links node,
static_double_list_links after 
)
protectedinherited

Insert a new node after existing node.

Parameters
nodeReference to node to insert.
afterReference to existing node.
Returns
Nothing.

Definition at line 123 of file lists.cpp.

◆ link()

void os::rtos::internal::terminated_threads_list::link ( waiting_thread_node node)

Add a new thread node to the list.

Parameters
[in]nodeReference to a list node.
Returns
Nothing.

Definition at line 494 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
trueThe list was not initialised.
falseThe list was initialised.

Definition at line 1042 of file lists.h.

Member Data Documentation

◆ 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: