supla-device
Loading...
Searching...
No Matches
src
supla
esp_idf_mutex.h
1
// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2
// SPDX-License-Identifier: GPL-2.0-or-later
3
4
#ifndef SRC_SUPLA_ESP_IDF_MUTEX_H_
5
#define SRC_SUPLA_ESP_IDF_MUTEX_H_
6
7
#include <freertos/FreeRTOS.h>
8
#include <freertos/semphr.h>
9
#include <supla/mutex.h>
10
11
namespace
Supla {
12
13
class
EspIdfMutex
:
public
Mutex
{
14
public
:
15
friend
Supla::Mutex
*Supla::Mutex::Create();
16
virtual
~EspIdfMutex
();
17
void
lock()
override
;
18
void
unlock()
override
;
19
20
protected
:
21
EspIdfMutex
();
22
23
SemaphoreHandle_t mutex = NULL;
24
};
25
26
};
// namespace Supla
27
28
#endif
// SRC_SUPLA_ESP_IDF_MUTEX_H_
Supla::EspIdfMutex
Definition
esp_idf_mutex.h:13
Supla::Mutex
Definition
mutex.h:9
Generated by
1.12.0