[host] Define a no-op InterruptLock (#20974)

This commit is contained in:
J. Nick Koston
2026-10-16 17:53:33 -10:00
committed by GitHub
parent d2a1f7ee31
commit dcdc042a4b
+4
View File
@@ -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_); }