This commit is contained in:
2026-06-25 11:45:41 +08:00
parent f0510f5438
commit 03bfac8d0c
3 changed files with 146 additions and 120 deletions
+6 -5
View File
@@ -11,6 +11,8 @@
#include <codecvt>
#include <csignal>
#include <future>
#include "Local_Server/server/io_coro.h"
// ./server ./config.json
#ifdef __linux__
@@ -182,8 +184,9 @@ int psc_main(int argc, char *argv[]) {
bool enable = g->mlat.enable;
void start_io_coro();
start_io_coro();
Coro coro;
coro.start();
// Catch_Memory cm;
@@ -208,9 +211,7 @@ int psc_main(int argc, char *argv[]) {
}
}
void stop_io_coro();
stop_io_coro();
coro.stop();
if (stop_program == SIGINT || stop_program == SIGTERM) {
clear();