mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
32 lines
723 B
C++
32 lines
723 B
C++
#ifndef FILEUPDATER_H
|
|
#define FILEUPDATER_H
|
|
|
|
#include <fstream>
|
|
#include <mutex>
|
|
#include <condition_variable>
|
|
#include <vector>
|
|
|
|
class FileUpdater {
|
|
public:
|
|
static bool running;
|
|
static long oldNegLstSize;
|
|
static long oldLoginLstSize;
|
|
static long oldPassLstSize;
|
|
static long oldSSHLstSize;
|
|
static long oldWFLoginLstSize;
|
|
static long oldWFPassLstSize;
|
|
static bool ready;
|
|
static std::condition_variable cv;
|
|
static std::mutex filesUpdatingMutex;
|
|
static std::unique_lock<std::mutex> lk;
|
|
static int gNegativeSize;
|
|
static std::vector<std::string> negativeVector;
|
|
|
|
public:
|
|
static void updateLists();
|
|
static void loadOnce();
|
|
static void FUClear();
|
|
};
|
|
|
|
#endif // FILEUPDATER_H
|