mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:13:34 +08:00
px4_work_queue: command line status output and shutdown empty queues
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items * WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
This commit is contained in:
@@ -42,7 +42,7 @@ using namespace px4;
|
||||
class WQueueScheduledTest : public px4::ScheduledWorkItem
|
||||
{
|
||||
public:
|
||||
WQueueScheduledTest() : px4::ScheduledWorkItem(px4::wq_configurations::test2) {}
|
||||
WQueueScheduledTest() : px4::ScheduledWorkItem(MODULE_NAME, px4::wq_configurations::test2) {}
|
||||
~WQueueScheduledTest() = default;
|
||||
|
||||
int main();
|
||||
|
||||
@@ -42,7 +42,7 @@ using namespace px4;
|
||||
class WQueueTest : public px4::WorkItem
|
||||
{
|
||||
public:
|
||||
WQueueTest() : px4::WorkItem(px4::wq_configurations::test1) {}
|
||||
WQueueTest() : px4::WorkItem("WQueueTest", px4::wq_configurations::test1) {}
|
||||
~WQueueTest() = default;
|
||||
|
||||
int main();
|
||||
|
||||
Reference in New Issue
Block a user