#ifndef SERVERCOMMANDS_H #define SERVERCOMMANDS_H #include <atomic> class ServerCommands final { public: ServerCommands(); bool isRunning() const; void stop(); private: std::atomic_bool running; }; #endif