mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 04:55:58 +08:00
适配ZLToolKit代码,简化程序退出流程代码
This commit is contained in:
@@ -26,18 +26,14 @@
|
||||
|
||||
#include "UDPServer.h"
|
||||
#include "Util/TimeTicker.h"
|
||||
#include "Util/onceToken.h"
|
||||
|
||||
using namespace toolkit;
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
UDPServer &UDPServer::Instance() {
|
||||
static UDPServer *instance(new UDPServer());
|
||||
return *instance;
|
||||
}
|
||||
void UDPServer::Destory() {
|
||||
delete &UDPServer::Instance();
|
||||
}
|
||||
|
||||
INSTANCE_IMP(UDPServer);
|
||||
|
||||
UDPServer::UDPServer() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user