Plot Something - ME 405 Term Project
task_share.py File Reference

This file contains classes which allow tasks to share data without the risk of data corruption by interrupts. More...

Classes

class  task_share.BaseShare
 Base class for queues and shares which exchange data between tasks. More...
 
class  task_share.Queue
 A queue which is used to transfer data from one task to another. More...
 
class  task_share.Share
 An item which holds data to be shared between tasks. More...
 

Functions

def task_share.show_all ()
 Create a string holding a diagnostic printout showing the status of each queue and share in the system. More...
 

Variables

list task_share.share_list = []
 This is a system-wide list of all the queues and shared variables. More...
 
dictionary task_share.type_code_strings
 This dictionary allows readable printouts of queue and share data types. More...
 

Detailed Description

This file contains classes which allow tasks to share data without the risk of data corruption by interrupts.

Author
JR Ridgely
Date
2017-Jan-01 JRR Approximate date of creation of file
2021-Dec-18 JRR Docstrings changed to work without DoxyPyPy

Function Documentation

◆ show_all()

def task_share.show_all ( )

Create a string holding a diagnostic printout showing the status of each queue and share in the system.

Returns
A string containing information about each queue and share

Variable Documentation

◆ share_list

list task_share.share_list = []

This is a system-wide list of all the queues and shared variables.

It is used to create diagnostic printouts.

◆ type_code_strings

dictionary task_share.type_code_strings
Initial value:
1= {'b' : "int8", 'B' : "uint8",
2 'h' : "int16", 'H' : "uint16",
3 'i' : "int(?)", 'I' : "uint(?)",
4 'l' : "int32", 'L' : "uint32",
5 'q' : "int64", 'Q' : "uint64",
6 'f' : "float", 'd' : "double"}

This dictionary allows readable printouts of queue and share data types.