9 #ifndef LLVM_SUPPORT_LOCKFILEMANAGER_H
10 #define LLVM_SUPPORT_LOCKFILEMANAGER_H
14 #include <system_error>
60 std::string ErrorDiagMsg;
68 static bool processStillExecuting(
StringRef Hostname,
int PID);
93 ErrorDiagMsg = ErrorMsg.str();
99 #endif // LLVM_SUPPORT_LOCKFILEMANAGER_H
void setError(std::error_code &EC, StringRef ErrorMsg="")
Set error and error message.
WaitForUnlockResult
Describes the result of waiting for the owner to release the lock.
The lock was released successfully.
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.
Lightweight error class with error context and mandatory checking.
WaitForUnlockResult waitForUnlock()
For a shared lock, wait until the owner releases the lock.
StringRef - Represent a constant reference to a string, i.e.
std::string getErrorMessage() const
Get error message, or "" if there is no error.
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.