From ee6dd55222f2b230ba349ccbc35f50aba9836e0f Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 17 Dec 2024 13:58:34 +0200 Subject: [PATCH] px4_work_queue: Disable priority inheritance for signaling semaphore --- platforms/common/px4_work_queue/WorkItemSingleShot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/common/px4_work_queue/WorkItemSingleShot.cpp b/platforms/common/px4_work_queue/WorkItemSingleShot.cpp index 77d24e2c2a87..7b2a52f2b47a 100644 --- a/platforms/common/px4_work_queue/WorkItemSingleShot.cpp +++ b/platforms/common/px4_work_queue/WorkItemSingleShot.cpp @@ -48,6 +48,7 @@ WorkItemSingleShot::WorkItemSingleShot(const px4::WorkItem &work_item, worker_me : px4::WorkItem("", work_item), _argument(argument), _method(method) { px4_sem_init(&_sem, 0, 0); + px4_sem_setprotocol(&_sem, SEM_PRIO_NONE); } WorkItemSingleShot::~WorkItemSingleShot()