From 164022ca12d3d69e4d89b3875350ef7223b09178 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 28 Mar 2020 07:28:44 +1100 Subject: [PATCH] AP_HAL: added thread_info() API --- libraries/AP_HAL/Util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index afce7927ef..4ae916a5ca 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -182,6 +182,9 @@ public: // attempt to trap the processor, presumably to enter an attached debugger virtual bool trap() const { return false; } + // request information on running threads + virtual size_t thread_info(char *buf, size_t bufsize) { return 0; } + protected: // we start soft_armed false, so that actuators don't send any // values until the vehicle code has fully started