#ifndef ONEINSTANCELOCK_H #define ONEINSTANCELOCK_H #include #include #include #include #include "logger.h" class OneInstanceLock { int fd = -1; std::string lockFilePath; Logger *logger = Logger::getInstance(); public: OneInstanceLock(); ~OneInstanceLock(); void lock(); void unlock(); }; #endif // ONEINSTANCELOCK_H