mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:33:33 +08:00
FlightTasks: add SubscriptionArray class that contains all subscriptions
This is to avoid dynamic (re-)allocations on task switching, due to
orb_{un,}subscribe calls.
This commit is contained in:
@@ -83,6 +83,10 @@ public:
|
||||
|
||||
int getHandle() const { return _handle; }
|
||||
|
||||
const orb_metadata *meta() const { return _meta; }
|
||||
|
||||
unsigned instance() const { return _instance; }
|
||||
|
||||
protected:
|
||||
const struct orb_metadata *_meta;
|
||||
int _handle;
|
||||
|
||||
Reference in New Issue
Block a user