mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 20:01:44 +02:00
dont resolve
git-svn-id: svn://elaine/murooma/trunk@240 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
0ca2460971
commit
f507b931fe
3 changed files with 85 additions and 0 deletions
26
client/controller.h
Normal file
26
client/controller.h
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue