微调
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user