COSA
An Object-Oriented Platform for Arduino Programming
Nucleo::Mutex Class Reference

#include <Mutex.hh>

Collaboration diagram for Nucleo::Mutex:
Collaboration graph

Public Member Functions

 Mutex (Semaphore &sem)
 
 ~Mutex ()
 

Detailed Description

The Cosa Nucleo Mutex; mutual exclusion block. Used as a local variable in a block to wait and signal a semaphore to achive mutual exclusive execution of the block.

Definition at line 33 of file Mutex.hh.

Constructor & Destructor Documentation

Nucleo::Mutex::Mutex ( Semaphore sem)
inline

Start mutual exclusion block using given semaphore. The semaphore should be initiated with one (which is also the default value).

Parameters
[in]semsemaphore to wait.

Definition at line 40 of file Mutex.hh.

Nucleo::Mutex::~Mutex ( )
inline

End of mutual exclusion block. Will signal semaphore.

Definition at line 45 of file Mutex.hh.


The documentation for this class was generated from the following file: