PL::Lockable class

class Lockable

Lockable object class.

Subclassed by PL::Adxl355, PL::BlackBoxHardwareInterfaceConfiguration, PL::Buffer, PL::HardwareInterface, PL::HttpClient, PL::I2C, PL::I2CController, PL::MdnsClient, PL::ModbusBase, PL::Mutex, PL::NvsNamespace, PL::Server, PL::Spi, PL::SpiController, PL::Stream, PL::TcpClient

Public Functions

virtual esp_err_t Lock(TickType_t timeout = portMAX_DELAY) = 0

Locks the object.

Parameters:

timeout – timeout in FreeRTOS ticks

Returns:

error code

virtual esp_err_t Unlock() = 0

Unlocks the object.

Returns:

error code