3 #ifndef __ARC_FILELOCK_H__
4 #define __ARC_FILELOCK_H__
8 #include <arc/Logger.h>
50 FileLock(
const std::string& filename,
67 bool acquire(
bool& lock_removed);
93 int check(
bool log_error =
true);
100 std::string filename;
102 std::string lock_file;
110 std::string hostname;
115 bool acquire_(
bool& lock_removed);
118 bool write_pid(
int h);