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:
Beat Küng
2018-04-05 07:30:12 +02:00
parent b5ecf9824d
commit 9b571abb47
9 changed files with 245 additions and 15 deletions
+4
View File
@@ -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;