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
@@ -7,7 +7,7 @@
|
||||
namespace tt::hal::spi {
|
||||
|
||||
struct Data {
|
||||
std::shared_ptr<Lockable> lock;
|
||||
std::shared_ptr<Lock> lock;
|
||||
bool isConfigured = false;
|
||||
bool isStarted = false;
|
||||
Configuration configuration;
|
||||
@@ -169,7 +169,7 @@ bool isStarted(spi_host_device_t device) {
|
||||
return dataArray[device].isStarted;
|
||||
}
|
||||
|
||||
Lockable& getLock(spi_host_device_t device) {
|
||||
Lock& getLock(spi_host_device_t device) {
|
||||
return *dataArray[device].lock;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user