From 791492306113c2f22af4a15fc4527c6b27cbfc96 Mon Sep 17 00:00:00 2001 From: Maksym Telychko Date: Fri, 17 Apr 2020 09:38:16 +0300 Subject: Revert "MTX-3262 mpower: lockfile rewrite for interprocess communication safety" This reverts commit bab7e498b6dc31b6967a59fd728c5e5fe59d485c. --- include/mts/MTS_IO_LockFile.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mts/MTS_IO_LockFile.h b/include/mts/MTS_IO_LockFile.h index 22e641b..730cf3c 100644 --- a/include/mts/MTS_IO_LockFile.h +++ b/include/mts/MTS_IO_LockFile.h @@ -34,8 +34,11 @@ namespace MTS { namespace IO { + class LockFile : MTS::NonCopyable { + public: + LockFile(const std::string& sFilePath); virtual ~LockFile(); @@ -43,10 +46,11 @@ namespace MTS { void unlock(); bool isLocked(); + protected: + private: std::string m_sFile; int m_iLockFd; - int m_iLockErr; }; } -- cgit v1.2.3