AP_HAL: add UARTDriver::is_owned_by_current_thread()

This commit is contained in:
Andy Piper authored and Andrew Tridgell committed 2025-10-29 18:34:57 +11:00
1 parent d2a361afa7
commit 73278a047b
1 file changed
+3
+3
View File
@@ -220,6 +220,9 @@ public:
return lock_write_key != 0;
}
// check that the current thread owns the uart making certain operations possible
virtual bool is_owned_by_current_thread() const { return true; }
protected:
// key for a locked port
uint32_t lock_write_key;