mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
24 lines
511 B
C++
24 lines
511 B
C++
#pragma once
|
|
|
|
#include "Common.h"
|
|
#include "IThreaded.h"
|
|
|
|
#include <atomic>
|
|
#include <memory>
|
|
#include <unordered_map>
|
|
|
|
class TLuaEngine;
|
|
|
|
class TPluginMonitor : IThreaded, public std::enable_shared_from_this<TPluginMonitor> {
|
|
public:
|
|
TPluginMonitor(const fs::path& Path, std::shared_ptr<TLuaEngine> Engine);
|
|
|
|
void operator()();
|
|
|
|
private:
|
|
std::shared_ptr<TLuaEngine> mEngine;
|
|
fs::path mPath;
|
|
std::atomic_bool mShutdown;
|
|
std::unordered_map<std::string, fs::file_time_type> mFileTimes;
|
|
};
|