diff options
Diffstat (limited to 'llvm/include/llvm/Support/LockFileManager.h')
-rw-r--r-- | llvm/include/llvm/Support/LockFileManager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/LockFileManager.h b/llvm/include/llvm/Support/LockFileManager.h index 57e4fbd84cd9..2efeca3b6200 100644 --- a/llvm/include/llvm/Support/LockFileManager.h +++ b/llvm/include/llvm/Support/LockFileManager.h @@ -77,7 +77,9 @@ public: operator LockFileState() const { return getState(); } /// For a shared lock, wait until the owner releases the lock. - WaitForUnlockResult waitForUnlock(); + /// Total timeout for the file to appear is ~1.5 minutes. + /// \param MaxSeconds the maximum wait time per iteration in seconds. + WaitForUnlockResult waitForUnlock(const unsigned MaxSeconds = 40); /// Remove the lock file. This may delete a different lock file than /// the one previously read if there is a race. |