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:
@ -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;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user