ESPHome  2024.10.2
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 544 of file helpers.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

esphome::Mutex::Mutex ( )

Definition at line 621 of file helpers.cpp.

◆ Mutex() [2/2]

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

Member Function Documentation

◆ lock()

void esphome::Mutex::lock ( )

Definition at line 622 of file helpers.cpp.

◆ operator=()

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

◆ try_lock()

bool esphome::Mutex::try_lock ( )

Definition at line 623 of file helpers.cpp.

◆ unlock()

void esphome::Mutex::unlock ( )

Definition at line 624 of file helpers.cpp.


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