优化退出流程,统一注册到on_exit(
This commit is contained in:
@ -1,9 +1,19 @@
|
||||
#ifndef QUIT
|
||||
#define QUIT
|
||||
#ifndef QUIT_LIB
|
||||
#define QUIT_LIB
|
||||
|
||||
#include "network/network.h"
|
||||
void *quitall(void *self_p);
|
||||
#include "tem/ctl.h"
|
||||
#include "tools/log/log.h"
|
||||
typedef struct all_resources
|
||||
{
|
||||
Ctl *tem;
|
||||
netm *network;
|
||||
log_manager *loger;
|
||||
|
||||
}alres;
|
||||
|
||||
|
||||
void quit_all(int status,void *self_p);
|
||||
|
||||
int server_quit(netm *self);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user