From 8bbb5196d1d7777686558c1d441786b7fbc63fc5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 12 Dec 2001 20:19:26 +0100
Subject: [PATCH] (LSH_FILE_LOCK): New argument RETRIES.

Rev: src/lock_file.h:1.3
---
 src/lock_file.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lock_file.h b/src/lock_file.h
index 456594b2b..62ce23b31 100644
--- a/src/lock_file.h
+++ b/src/lock_file.h
@@ -37,12 +37,16 @@ struct lsh_file_lock_info;
      (name lsh_file_lock_info)
      (vars
        (lockname string)
-       (lock method "struct resource *")
+       (lock method "struct resource *" "unsigned retries")
        (lock_p method int)))
 */
 
-#define LSH_FILE_LOCK(i) ((i)->lock((i)))
+#define LSH_FILE_LOCK(i, r) ((i)->lock((i), (r)))
 #define LSH_FILE_LOCK_P(i) ((i)->lock_p((i)))
 
+/* Takes the name of the lock-file as argument.
+ *
+ * FIXME: Perhaps it would be better to take just the filename,
+ * without ".lock"-suffix? */
 struct lsh_file_lock_info *
 make_lsh_file_lock_info(struct lsh_string *name);
-- 
GitLab