WorkItemSingleShot: Disable priority inheritance for signaling semaphore

WorkItemSingleShot::_sem is a signaling semaphore, disable PI for it.

Set CONFIG_DEBUG_ASSERTIONS=y and the kernel panics due to the semaphore
having no holder, disabling PI fixes this.
This commit is contained in:
Ville Juven 2023-10-04 17:04:35 +03:00 committed by Daniel Agar
parent 5578b629a3
commit d83b9f3c38

View File

@ -41,6 +41,7 @@ WorkItemSingleShot::WorkItemSingleShot(const px4::wq_config_t &config, worker_me
: px4::WorkItem("<single_shot>", config), _argument(argument), _method(method)
{
px4_sem_init(&_sem, 0, 0);
px4_sem_setprotocol(&_sem, SEM_PRIO_NONE);
}
WorkItemSingleShot::WorkItemSingleShot(const px4::WorkItem &work_item, worker_method method, void *argument)