nesca/FileUpdater.h

31 lines
682 B
C
Raw Normal View History

2015-03-24 14:29:27 +00:00
#ifndef FILEUPDATER_H
#define FILEUPDATER_H
#include <fstream>
2015-03-25 14:29:08 +00:00
#include <mutex>
#include <condition_variable>
2015-03-24 14:29:27 +00:00
#include "externData.h"
#include "externFunctions.h"
class FileUpdater {
public:
2015-04-01 19:23:52 +00:00
static bool running;
2015-03-24 14:29:27 +00:00
static long oldNegLstSize;
static long oldLoginLstSize;
static long oldPassLstSize;
static long oldSSHLstSize;
static long oldWFLoginLstSize;
static long oldWFPassLstSize;
2015-03-25 14:29:08 +00:00
static bool ready;
static std::condition_variable cv;
static std::mutex filesUpdatingMutex;
static std::unique_lock<std::mutex> lk;
2015-03-24 14:29:27 +00:00
public:
2015-03-28 05:30:41 +00:00
static void updateLists();
static void loadOnce();
2015-03-27 13:38:53 +00:00
static void FUClear();
2015-03-24 14:29:27 +00:00
};
#endif // FILEUPDATER_H