mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-05 22:38:38 +08:00
AP_HAL: add UARTDriver::is_owned_by_current_thread()
This commit is contained in:
1 parent
d2a361afa7
commit
73278a047b
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user