ESPHome  2024.2.0
Public Member Functions
esphome::Mutex Class Reference

Mutex implementation, with API based on the unavailable std::mutex. More...

#include <helpers.h>

Public Member Functions

 Mutex ()
 
 Mutex (const Mutex &)=delete
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 
Mutexoperator= (const Mutex &)=delete
 

Detailed Description

Mutex implementation, with API based on the unavailable std::mutex.

Note
This mutex is non-recursive, so take care not to try to obtain the mutex while it is already taken.

Definition at line 538 of file helpers.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

esphome::Mutex::Mutex ( )

Definition at line 520 of file helpers.cpp.

◆ Mutex() [2/2]

esphome::Mutex::Mutex ( const Mutex )
delete

Member Function Documentation

◆ lock()

void esphome::Mutex::lock ( )

Definition at line 521 of file helpers.cpp.

◆ operator=()

Mutex& esphome::Mutex::operator= ( const Mutex )
delete

◆ try_lock()

bool esphome::Mutex::try_lock ( )

Definition at line 522 of file helpers.cpp.

◆ unlock()

void esphome::Mutex::unlock ( )

Definition at line 523 of file helpers.cpp.


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