nesca/FileUpdater.h
2015-03-27 16:38:53 +03:00

34 lines
722 B
C++

#ifndef FILEUPDATER_H
#define FILEUPDATER_H
#ifndef Sleep
#define Sleep(msecs) usleep((msecs)*1000)
#endif
#include <fstream>
#include <mutex>
#include <condition_variable>
#include "externData.h"
#include "externFunctions.h"
class FileUpdater {
public:
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;
public:
static int updateLists();
static int loadOnce();
static void FUClear();
};
#endif // FILEUPDATER_H