ME507 Utility Library
0.2.1
Mechatronics Course Support Software for ARM/Arduino/FreeRTOS
|
Source code of a base class for type-safe, thread-safe task data exchange classes. More...
#include "baseshare.h"
Functions | |
void | print_all_shares (Print &printer) |
Start the printout showing the status of all shared data items. More... | |
Source code of a base class for type-safe, thread-safe task data exchange classes.
This file contains a base class for classes which exchange data between tasks. Inter-task data must be exchanged in a thread-safe manner, so the classes which share the data use mutexes or mutual exclusion mechanisms to prevent corruption of data. A linked list of all inter-task data items is kept by the system, and this base class contains members that handle that linked list.
License: This file is copyright 2014 - 2020 by JR Ridgely and released under the Lesser GNU Public License, version 2. It intended for educational use only, but its use is not limited thereto.
void print_all_shares | ( | Print & | printer | ) |
Start the printout showing the status of all shared data items.
This method begins printing out the status of all items in the system's linked list of shared data items (queues, task shares, and so on). The most recently created share's status is printed first, followed by the status of other shares in reverse order of creation.
printer | Pointer to a serial device on which to print |