重构协程

This commit is contained in:
2026-06-25 11:17:52 +08:00
parent 2aad10ccf4
commit f0510f5438
11 changed files with 370 additions and 386 deletions
+14 -2
View File
@@ -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();
}