Lockable renamed to Lock (#219)
Also changed usage from unique_ptr to class value.
This commit is contained in:
committed by
GitHub
parent
2e86d4774b
commit
55bfb9fe3b
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user