Removed singleton pattern

This commit is contained in:
Kayne Ruse
2014-04-21 01:01:00 +10:00
parent 4270765146
commit fd673a415f
9 changed files with 21 additions and 57 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ int main(int argc, char** argv) {
try {
ServerApplication app;
app.Init(argc, argv);
app.Loop();
app.Proc();
app.Quit();
}
catch(exception& e) {
+1 -1
View File
@@ -97,7 +97,7 @@ void ServerApplication::Init(int argc, char** argv) {
//
}
void ServerApplication::Loop() {
void ServerApplication::Proc() {
SerialPacket packet;
while(running) {
//suck in the waiting packets & process them
+1 -1
View File
@@ -57,7 +57,7 @@ public:
~ServerApplication() = default;
void Init(int argc, char** argv);
void Loop();
void Proc();
void Quit();
private: