PL::Mutex class

class Mutex : public PL::Lockable

Mutex class.

Public Functions

Mutex()

Creates a mutex.

virtual esp_err_t Lock(TickType_t timeout = portMAX_DELAY) override

Locks the object.

Parameters:

timeout – timeout in FreeRTOS ticks

Returns:

error code

virtual esp_err_t Unlock() override

Unlocks the object.

Returns:

error code