ServerCommands.h 225 B

1234567891011121314151617
  1. #ifndef SERVERCOMMANDS_H
  2. #define SERVERCOMMANDS_H
  3. #include <atomic>
  4. class ServerCommands final {
  5. public:
  6. ServerCommands();
  7. bool isRunning() const;
  8. void stop();
  9. private:
  10. std::atomic_bool running;
  11. };
  12. #endif