From 565c686f110dde5a552eaf59a897869a4b91d843 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Thu, 21 Sep 2023 16:09:49 +0300 Subject: [PATCH] uORB/callbacks: Increase amount of callbacks to 32 in kernel mode In kernel mode there might be quite a lot of waiters, so increase the callback list size substantially. Leave the other modes unaffected. --- platforms/common/uORB/uORBDeviceNode.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platforms/common/uORB/uORBDeviceNode.hpp b/platforms/common/uORB/uORBDeviceNode.hpp index 3225ab9b023d..48faea9e8950 100644 --- a/platforms/common/uORB/uORBDeviceNode.hpp +++ b/platforms/common/uORB/uORBDeviceNode.hpp @@ -57,7 +57,11 @@ typedef void *uorb_cb_handle_t; #define UORB_INVALID_CB_HANDLE nullptr #define uorb_cb_handle_valid(x) ((x) != nullptr) #else +#if defined(CONFIG_BUILD_KERNEL) +#define MAX_EVENT_WAITERS 32 +#else #define MAX_EVENT_WAITERS 5 +#endif #define UORB_INVALID_CB_HANDLE -1 typedef int8_t uorb_cb_handle_t; #define uorb_cb_handle_valid(x) ((x) >= 0)