This might work
This commit is contained in:
1 parent
5ed39dee62
commit
162cd66fee
1 file changed
+33
-4
@@ -4,6 +4,7 @@
|
||||
#include "lib/utils/bts_export.h"
|
||||
#include "lib/md/Shm/MDStructure.h"
|
||||
#include <atomic>
|
||||
#include <vector>
|
||||
|
||||
namespace bts {
|
||||
namespace md {
|
||||
@@ -110,10 +111,38 @@ private:
|
||||
|
||||
const HotDepthEntry* hotd() const { bts_assert_d(has_depth()); return static_cast<const HotDepthEntry*>(_hot); }
|
||||
const HotEntry* hot() const { return static_cast<const HotEntry*>(_hot); }
|
||||
// COPY OK -- BTS_NO_COPY(MDConsumerHandle);
|
||||
const void* _hot;
|
||||
const ColdEntry* _cdata;
|
||||
const ColdHeader* _cheader;
|
||||
|
||||
// const void* _hot;
|
||||
// const ColdEntry* _cdata;
|
||||
// const ColdHeader* _cheader;
|
||||
|
||||
enum HandleType : uint8_t {
|
||||
HANDLETYPE_VOID,
|
||||
HANDLETYPE_DEPTH,
|
||||
HANDLETYPE_BBO,
|
||||
HANDLETYPE_SYNTHETIC
|
||||
};
|
||||
struct DepthHandle {
|
||||
const HotDepthEntry* hot;
|
||||
const ColdEntry* cdata;
|
||||
const ColdHeader* cheader;
|
||||
};
|
||||
struct BBOHandle {
|
||||
const HotEntry* hot;
|
||||
const ColdEntry* cdata;
|
||||
const ColdHeader* cheader;
|
||||
};
|
||||
struct SyntheticHandle {
|
||||
std::unique_ptr<MDConsumerHandle> leg1;
|
||||
std::unique_ptr<MDConsumerHandle> leg2;
|
||||
std::unique_ptr<std::vector<MDConsumerHandle>> legs_n;
|
||||
};
|
||||
HandleType _type;
|
||||
union {
|
||||
DepthHandle depth;
|
||||
BBOHandle bbo;
|
||||
SyntheticHandle synthetic;
|
||||
};
|
||||
};
|
||||
|
||||
}}//namespace
|
||||
|
||||
Reference in new issue
Block a user