Home | History | Annotate | Download | only in importer

Lines Matching defs:lock

63 void FirefoxProfileLock::Lock() {
88 // This function tries to lock Firefox profile using fcntl(). The return
90 // of lock.
91 // if return == false: Another process has lock to the profile.
92 // if return == true && HasAcquired() == true: successfully acquired the lock.
93 // if return == false && HasAcquired() == false: Failed to acquire lock due
94 // to some error (so that we can try alternate method of profile lock).
101 struct flock lock;
102 lock.l_start = 0;
103 lock.l_len = 0;
104 lock.l_type = F_WRLCK;
105 lock.l_whence = SEEK_SET;
106 lock.l_pid = 0;
108 struct flock testlock = lock;
113 } else if (fcntl(lock_fd_, F_SETLK, &lock) == -1) {
121 // We have the lock.