Lines Matching full:lock
25 /// \brief Attempt to read the lock file with the given name, if it exists.
27 /// \param LockFileName The name of the lock file to read.
29 /// \returns The process ID of the process that owns this lock file
32 // Read the owning host and PID out of the lock file. If it appears that the
33 // owning process is dead, the lock file is invalid.
53 // Delete the lock file. It's invalid anyway.
80 LockFileName += ".lock";
82 // If the lock file already exists, don't bother to try to create our own
83 // lock file; it won't work anyway. Just figure out who owns this lock file.
87 // Create a lock file that is unique to this instance.
97 // Write our process ID to our unique lock file.
115 // unique lock file, and fail.
123 // Create a link from the lock file name. If this succeeds, we're done.
134 // Someone else managed to create the lock file first. Read the process ID
135 // from the lock file.
137 // Wipe out our unique lock file (it's useless now)
143 // The previous owner released the lock file before we could read it.
148 // There is a lock file that nobody owns; try to clean it up and get
171 // Since we own the lock, remove the lock file and our own unique lock file.
192 // finish up and remove the lock file.
194 // lock file is deleted?
203 // If the original file wasn't created, somone thought the lock was dead.
209 // If the process owning the lock died without cleaning up, just bail out.
213 // Exponentially increase the time we wait for the lock to be removed.