summaryrefslogtreecommitdiff
path: root/include/mts/MTS_IO_LockFile.h
diff options
context:
space:
mode:
authorMaksym Telychko <maksym.telychko@globallogic.com>2020-04-17 09:38:16 +0300
committerMaksym Telychko <maksym.telychko@globallogic.com>2020-04-17 09:38:16 +0300
commit791492306113c2f22af4a15fc4527c6b27cbfc96 (patch)
treee06153349d380256059021e177107eee407ee002 /include/mts/MTS_IO_LockFile.h
parent8ad5075256df8b359e2a291fbe0b15f89d35d073 (diff)
downloadlibmts-io-791492306113c2f22af4a15fc4527c6b27cbfc96.tar.gz
libmts-io-791492306113c2f22af4a15fc4527c6b27cbfc96.tar.bz2
libmts-io-791492306113c2f22af4a15fc4527c6b27cbfc96.zip
Revert "MTX-3262 mpower: lockfile rewrite for interprocess communication safety"
This reverts commit bab7e498b6dc31b6967a59fd728c5e5fe59d485c.
Diffstat (limited to 'include/mts/MTS_IO_LockFile.h')
-rw-r--r--include/mts/MTS_IO_LockFile.h6
1 files changed, 5 insertions, 1 deletions
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;
};
}