执行改成多线程
This commit is contained in:
@@ -73,20 +73,15 @@ class Data_Source : public std::enable_shared_from_this<Data_Source>,
|
||||
public Data_Source_Handler, public Data_Source_Data {
|
||||
public:
|
||||
std::shared_ptr<Data_Source> that();
|
||||
virtual concurrencpp::result<std::string> read_coro() {
|
||||
co_return "";
|
||||
};
|
||||
virtual concurrencpp::result<std::string> read_coro() {co_return "";}
|
||||
bool registered() const;
|
||||
virtual Psc::JSON get_custom_state_json() = 0;
|
||||
Psc::JSON get_state();
|
||||
std::string last_char; // 用于处理奇数字节
|
||||
Data_Source();
|
||||
concurrencpp::result<void> loop_coro(
|
||||
std::shared_ptr<concurrencpp::worker_thread_executor> executor) override;
|
||||
concurrencpp::result<void> loop_coro() final;
|
||||
std::shared_ptr<SSR::Mode_Msg> last_prase_msg = nullptr;
|
||||
virtual concurrencpp::result<void> handle_in_loop_coro() {
|
||||
co_return;
|
||||
}
|
||||
virtual concurrencpp::result<void> handle_in_loop_coro() { co_return;}
|
||||
Frequency_Limit statistic_fl;
|
||||
std::string thread_key() const;
|
||||
Psc::JSON statistic_json() {
|
||||
|
||||
Reference in New Issue
Block a user