ME405: Mechatronics
Project Documentation and Portfolio by Neil Patel
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.Queue
 This class implements a queue which is used to transfer data from one task to another. More...
 
class  task_share.Share
 This class implements a shared data item which can be protected against data corruption by pre-emptive multithreading. 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...
 

Detailed Description

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

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.