mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
5578b629a3
commit
d83b9f3c38
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user