1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-24 19:42:27 +03:00

- Split most of the EspnowMeshBackend code into utility files and the new ConditionalPrinter, EspnowDatabase, EspnowConnectionManager, EspnowTransmitter and EspnowEncryptionBroker classes.

- Improve mutex handling.

- Move verifyEncryptionRequestHmac function from JsonTranslator to EspnowEncryptionBroker.

- Remove UtilityMethods.cpp.
This commit is contained in:
Anders
2020-05-15 20:33:08 +02:00
parent 3f5495bb3d
commit 40e1f02ffb
30 changed files with 3181 additions and 2263 deletions

View File

@ -35,13 +35,6 @@ class MutexTracker
{
public:
/*
* If captureBan is true, trying to capture a mutex will always fail.
* Set to false by default.
* captureBan can be managed by MutexTracker like any other mutex.
*/
static std::shared_ptr<bool> captureBan();
/**
* Attempts to capture the mutex. Use the mutexCaptured() method to check success.
*/
@ -56,6 +49,14 @@ class MutexTracker
~MutexTracker();
/*
* If captureBan is active, trying to capture a mutex will always fail.
* Inactive by default.
* captureBan can be managed by MutexTracker like any other mutex.
*/
static MutexTracker captureBan();
static MutexTracker captureBan(const std::function<void()> destructorHook);
bool mutexCaptured() const;
/**