Lines Matching defs:lock
11 #define AUTOEXPUNGE_LOCK_FNAME "dovecot.autoexpunge.lock"
14 mailbox_autoexpunge_lock(struct mail_user *user, struct file_lock **lock)
19 if (*lock != NULL)
22 /* Try to lock the autoexpunging. If the lock already exists, another
24 The easiest place where to store the lock file to is the home
26 it. The lock isn't really required; it 1) improves performance
31 0, lock, &error);
33 i_error("autoexpunge: Couldn't create %s lock: %s",
180 mail_namespace_autoexpunge(struct mail_namespace *ns, struct file_lock **lock,
194 if (!mailbox_autoexpunge_lock(ns->user, lock))
215 struct file_lock *lock = NULL;
221 if (!mail_namespace_autoexpunge(ns, &lock, &expunged_count))
225 file_lock_free(&lock);