重构协程
This commit is contained in:
@@ -55,6 +55,10 @@ struct Catch_Memory {
|
||||
std::int64_t sm;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int psc_main(int argc, char *argv[]) {
|
||||
std::cout << "wyc_main" << std::endl;
|
||||
|
||||
@@ -171,13 +175,17 @@ int psc_main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
});
|
||||
manager.test_and_start_thread("io_coro 协程线程", io_coro);
|
||||
// manager.test_and_start_thread("io_coro 协程线程", io_coro);
|
||||
static int t = Global::instance()->mode_acs.read_milliseconds;
|
||||
wake_data_feed_thread();
|
||||
|
||||
g->dsp_config.init_env();
|
||||
|
||||
bool enable = g->mlat.enable;
|
||||
|
||||
void start_io_coro();
|
||||
start_io_coro();
|
||||
|
||||
|
||||
// Catch_Memory cm;
|
||||
while (stop_program == 0) {
|
||||
for (auto &ds : g->mode_acs.data_source_config.map.list()) {
|
||||
@@ -200,6 +208,10 @@ int psc_main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
void stop_io_coro();
|
||||
stop_io_coro();
|
||||
|
||||
|
||||
if (stop_program == SIGINT || stop_program == SIGTERM) {
|
||||
clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user