Compare commits

...
Author SHA1 Message Date
J. Nick Koston 49b1a67509 Give the host platform a no-op InterruptLock
Components that take an InterruptLock around bit-banged I/O could not be
compiled or unit tested on the host because it never defined the class.
2026-10-16 16:52:30 -10:00
+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_); }