Commit 8bbb5196 authored by Niels Möller's avatar Niels Möller

(LSH_FILE_LOCK): New argument RETRIES.

Rev: src/lock_file.h:1.3
parent 7c10afdb
...@@ -37,12 +37,16 @@ struct lsh_file_lock_info; ...@@ -37,12 +37,16 @@ struct lsh_file_lock_info;
(name lsh_file_lock_info) (name lsh_file_lock_info)
(vars (vars
(lockname string) (lockname string)
(lock method "struct resource *") (lock method "struct resource *" "unsigned retries")
(lock_p method int))) (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))) #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 * struct lsh_file_lock_info *
make_lsh_file_lock_info(struct lsh_string *name); make_lsh_file_lock_info(struct lsh_string *name);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment