Files
spark/src/lib/md/PlatformLoader.h
T
2017-12-21 16:33:28 -05:00

40 lines
751 B
C++

#pragma once
#include "lib/utils/bts_no_copy.h"
#include "UserSymbol.h"
#include "common.h"
#include "get_symbols.h"
#include "lib/config/protos/MarketData.pb.h"
#include <string>
#include <vector>
#include <set>
namespace bts {
namespace md {
class BTS_EXPORT PlatformLoader
{
public:
PlatformLoader(const md::PlatformConfig&);
~PlatformLoader();
// Does not return
void run();
private:
// Some linux assemblies don't have a proper SONAME so we preload them by path to satisfy imports
// void preload(Platform);
BTS_NO_COPY(PlatformLoader);
const md::PlatformConfig& _config;
Platform _platform;
};
BTS_EXPORT void cleanup_shared_memory(const std::set<UserSymbol>& symbols, Platform platform);
}}//namespace