Loading src/backends/file.cpp +0 −3 Changes for src/backends/file.cpp: 0 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ #include <cstring> #include <exception> #include <mutex> #ifndef Windows #include <sys/types.h> Loading Loading @@ -105,7 +104,6 @@ void authdb::File::write(const unsigned char* dest, size_t destsize){ } void authdb::File::lock(){ std::lock_guard<std::mutex> lock( _fileMutex); #ifndef Windows for(;;){ mode_t m = umask( 0 ); Loading Loading @@ -134,7 +132,6 @@ void authdb::File::lock(){ } void authdb::File::unlock(){ std::lock_guard<std::mutex> lock( _fileMutex); #ifndef Windows flock(_LockDes,LOCK_UN); close(_LockDes); Loading src/backends/file.h +0 −1 Changes for src/backends/file.h: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ namespace authdb { void newRevesion(); private: std::string _lockFile; std::mutex _fileMutex; int _LockDes; int _FileDes; }; Loading Loading
src/backends/file.cpp +0 −3 Changes for src/backends/file.cpp: 0 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ #include <cstring> #include <exception> #include <mutex> #ifndef Windows #include <sys/types.h> Loading Loading @@ -105,7 +104,6 @@ void authdb::File::write(const unsigned char* dest, size_t destsize){ } void authdb::File::lock(){ std::lock_guard<std::mutex> lock( _fileMutex); #ifndef Windows for(;;){ mode_t m = umask( 0 ); Loading Loading @@ -134,7 +132,6 @@ void authdb::File::lock(){ } void authdb::File::unlock(){ std::lock_guard<std::mutex> lock( _fileMutex); #ifndef Windows flock(_LockDes,LOCK_UN); close(_LockDes); Loading
src/backends/file.h +0 −1 Changes for src/backends/file.h: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ namespace authdb { void newRevesion(); private: std::string _lockFile; std::mutex _fileMutex; int _LockDes; int _FileDes; }; Loading