ESPHome 2025.7.1
Loading...
Searching...
No Matches
esphome::LwIPLock Class Reference

Helper class to lock the lwIP TCPIP core when making lwIP API calls from non-TCPIP threads. More...

#include <helpers.h>

Public Member Functions

 LwIPLock ()
 
 ~LwIPLock ()
 
 LwIPLock (const LwIPLock &)=delete
 
LwIPLockoperator= (const LwIPLock &)=delete
 

Detailed Description

Helper class to lock the lwIP TCPIP core when making lwIP API calls from non-TCPIP threads.

This is needed on multi-threaded platforms (ESP32) when CONFIG_LWIP_TCPIP_CORE_LOCKING is enabled. It ensures thread-safe access to lwIP APIs.

Note
This follows the same pattern as InterruptLock - platform-specific implementations in helpers.cpp

Definition at line 693 of file helpers.h.

Constructor & Destructor Documentation

◆ LwIPLock() [1/2]

esphome::LwIPLock::LwIPLock ( )

Definition at line 38 of file helpers.cpp.

◆ ~LwIPLock()

esphome::LwIPLock::~LwIPLock ( )

Definition at line 55 of file helpers.cpp.

◆ LwIPLock() [2/2]

esphome::LwIPLock::LwIPLock ( const LwIPLock & )
delete

Member Function Documentation

◆ operator=()

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

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