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
+3 -3
View File
@@ -1,7 +1,7 @@
#pragma once
#include "Lock.h"
#include "kernel/Kernel.h"
#include "Lockable.h"
#include <cassert>
#include <memory>
@@ -19,7 +19,7 @@ namespace tt {
* Wrapper for xSemaphoreCreateBinary (max count == 1) and xSemaphoreCreateCounting (max count > 1)
* Can be used from IRQ/ISR mode, but cannot be created/destroyed from such a context.
*/
class Semaphore final : public Lockable {
class Semaphore final : public Lock {
private:
@@ -34,7 +34,7 @@ private:
public:
using Lockable::lock;
using Lock::lock;
/**
* Cannot be called from IRQ/ISR mode.