From dcdc042a4b88cf6555cd60adcfdbfe6588792555 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 16 Oct 2026 17:53:33 -1000 Subject: [PATCH] [host] Define a no-op InterruptLock (#20974) --- esphome/components/host/helpers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/components/host/helpers.cpp b/esphome/components/host/helpers.cpp index f8b7a0c5f08..4896c441f7d 100644 --- a/esphome/components/host/helpers.cpp +++ b/esphome/components/host/helpers.cpp @@ -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(handle_); }