9 #ifndef LLVM_SUPPORT_LOCKFILEMANAGER_H 10 #define LLVM_SUPPORT_LOCKFILEMANAGER_H 14 #include <system_error> 59 std::error_code ErrorCode;
60 std::string ErrorDiagMsg;
68 static bool processStillExecuting(
StringRef Hostname,
int PID);
93 ErrorDiagMsg = ErrorMsg.str();
99 #endif // LLVM_SUPPORT_LOCKFILEMANAGER_H This class represents lattice values for constants.
WaitForUnlockResult
Describes the result of waiting for the owner to release the lock.
std::string getErrorMessage() const
Get error message, or "" if there is no error.
The lock was released successfully.
void setError(const std::error_code &EC, StringRef ErrorMsg="")
Set error and error message.
An error occurred while trying to create or find the lock file.
std::error_code unsafeRemoveLockFile()
Remove the lock file.
LockFileState getState() const
Determine the state of the lock file.
LockFileState
Describes the state of a lock file.
Reached timeout while waiting for the owner to release the lock.
Owner died while holding the lock.
The lock file has been created and is owned by this instance of the object.
WaitForUnlockResult waitForUnlock()
For a shared lock, wait until the owner releases the lock.
StringRef - Represent a constant reference to a string, i.e.
Class that manages the creation of a lock file to aid implicit coordination between different process...
The lock file already exists and is owned by some other instance.