-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathFileUpdater.h
More file actions
34 lines (29 loc) · 786 Bytes
/
FileUpdater.h
File metadata and controls
34 lines (29 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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 long oldFTPLoginLstSize;
static long oldFTPPassLstSize;
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