Lines Matching full:lock
687 /// \brief Class that manages the creation of a lock file to aid
690 /// The implicit coordination works by creating a ".lock" file alongside
692 /// system to ensure that only a single process can create that ".lock" file.
693 /// When the lock file is removed, the owning process has finished the
697 /// \brief Describes the state of a lock file.
699 /// \brief The lock file has been created and is owned by this instance
702 /// \brief The lock file already exists and is owned by some other
705 /// \brief An error occurred while trying to create or find the lock
730 /// \brief Determine the state of the lock file.
735 /// \brief For a shared lock, wait until the owner releases the lock.
740 /// \brief Attempt to read the lock file with the given name, if it exists.
742 /// \param LockFileName The name of the lock file to read.
744 /// \returns The process ID of the process that owns this lock file
747 // Check whether the lock file exists. If not, clearly there's nothing
753 // Read the owning host and PID out of the lock file. If it appears that the
754 // owning process is dead, the lock file is invalid.
762 // Delete the lock file. It's invalid anyway.
785 LockFileName += ".lock";
787 // If the lock file already exists, don't bother to try to create our own
788 // lock file; it won't work anyway. Just figure out who owns this lock file.
792 // Create a lock file that is unique to this instance.
805 // Write our process ID to our unique lock file.
823 // unique lock file, and fail.
831 // Create a hard link from the lock file name. If this succeeds, we're done.
849 // Someone else managed to create the lock file first. Wipe out our unique
850 // lock file (it's useless now) and read the process ID from the lock file.
856 // There is a lock file that nobody owns; try to clean it up and report
876 // Since we own the lock, remove the lock file and our own unique lock file.
899 // lock file is deleted?
913 // Exponentially increase the time we wait for the lock to be removed.