Lockable renamed to Lock (#219)

Also changed usage from unique_ptr to class value.
This commit is contained in:
Ken Van Hoeylandt
2025-02-12 22:28:22 +01:00
committed by GitHub
parent 2e86d4774b
commit 55bfb9fe3b
40 changed files with 257 additions and 263 deletions
+5 -5
View File
@@ -4,10 +4,10 @@
*/
#pragma once
#include "Thread.h"
#include "RtosCompatSemaphore.h"
#include "Check.h"
#include "Lockable.h"
#include "Lock.h"
#include "RtosCompatSemaphore.h"
#include "Thread.h"
#include "kernel/Kernel.h"
#include <memory>
@@ -17,7 +17,7 @@ namespace tt {
* Wrapper for FreeRTOS xSemaphoreCreateMutex and xSemaphoreCreateRecursiveMutex
* Cannot be used in IRQ mode (within ISR context)
*/
class Mutex final : public Lockable {
class Mutex final : public Lock {
public:
@@ -40,7 +40,7 @@ private:
public:
using Lockable::lock;
using Lock::lock;
explicit Mutex(Type type = Type::Normal);
~Mutex() final = default;