dont resolve

git-svn-id: svn://elaine/murooma/trunk@240 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-09-06 19:58:32 +00:00
parent 0ca2460971
commit f507b931fe
3 changed files with 85 additions and 0 deletions

26
client/controller.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <string>
#include <thread>
#include <atomic>
#include "serverConnection.h"
class Controller : public MessageReceiver
{
public:
Controller();
void start();
void stop();
virtual void onMessageReceived(BaseMessage* message);
private:
void worker();
std::atomic<bool> active_;
std::thread* controllerThread;
};
#endif