25 lines
404 B
C++
25 lines
404 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <thread>
|
|
#include <string>
|
|
|
|
#include "graph_manager.h"
|
|
|
|
namespace rk3588 {
|
|
|
|
class MediaServerApp {
|
|
public:
|
|
explicit MediaServerApp(std::string config_path);
|
|
int Start();
|
|
|
|
private:
|
|
std::string config_path_;
|
|
GraphManager graph_manager_{};
|
|
|
|
std::atomic<bool> stop_signal_thread_{false};
|
|
std::thread signal_thread_;
|
|
};
|
|
|
|
} // namespace rk3588
|