预处理移动到 process_mode_acs_data 线程
This commit is contained in:
@@ -19,7 +19,10 @@ class Data_Source_Handler : public DataBase
|
||||
{
|
||||
public:
|
||||
std::shared_ptr<SSR::Msg> create_msg(const std::string& packet);
|
||||
|
||||
virtual void origin_data_transform_mode_data(std::string& origin_data){};
|
||||
virtual void before_handle_msg(std::shared_ptr<SSR::Mode_Msg>& msg){};
|
||||
|
||||
virtual void handle_mode_s(std::shared_ptr<SSR::Mode_S_Msg> msg);
|
||||
void handle_HULC(const std::string& packet);
|
||||
void process_mode_acs_data(const std::string& mode_data);
|
||||
@@ -27,7 +30,21 @@ public:
|
||||
Mode_S_Statistic_Data mode_s_statistic;
|
||||
Psc::Speed_Statistics read_speed;
|
||||
Psc::Value_Statistics value_statistics;
|
||||
virtual ~Data_Source_Handler(){};
|
||||
~Data_Source_Handler() override {};
|
||||
|
||||
// 推送到 data_feed 相关代码
|
||||
void push_to_feed(const std::shared_ptr<SSR::Msg> &msg);
|
||||
void refresh_data_feed_key_list();
|
||||
struct Cached_Source_Info {
|
||||
std::string key;
|
||||
Psc::Value_Statistics mode_s_cache_num;
|
||||
Psc::Value_Statistics mode_other_cache_num;
|
||||
};
|
||||
std::atomic<bool> need_refresh_data_feed_key_list = true;
|
||||
std::vector<Cached_Source_Info> cached_data_feed_key_list{};
|
||||
Psc::JSON get_all_connect_feed_status();
|
||||
Psc::JSON get_all_connect_feed();
|
||||
std::mutex cdf_mtx;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user