mirror of
https://github.com/esphome/esphome.git
synced 2026-10-17 11:42:51 +00:00
[host] Define a no-op InterruptLock (#20974)
This commit is contained in:
@@ -31,6 +31,10 @@ bool random_bytes(uint8_t *data, size_t len) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// The host has no interrupts to mask
|
||||
InterruptLock::InterruptLock() {}
|
||||
InterruptLock::~InterruptLock() {}
|
||||
|
||||
// Host platform uses std::mutex for proper thread synchronization
|
||||
Mutex::Mutex() { handle_ = new std::mutex(); }
|
||||
Mutex::~Mutex() { delete static_cast<std::mutex *>(handle_); }
|
||||
|
||||
Reference in New Issue
Block a user