summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-12 14:22:54 +0100
committerVolker Lendecke <vl@samba.org>2010-03-12 14:23:25 +0100
commit79100c242153ea174a4405afd45cbf635da313aa (patch)
treea48e26f1a73fb0ff1ebb592ac7b8c405004e2620 /source3/include
parent1728b5fa6f0efd443799550ab630abd8282a3c9c (diff)
downloadsamba-79100c242153ea174a4405afd45cbf635da313aa.tar.gz
samba-79100c242153ea174a4405afd45cbf635da313aa.tar.bz2
samba-79100c242153ea174a4405afd45cbf635da313aa.zip
s3: Add "g_lock_do" as a convenience wrapper function
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/g_lock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/g_lock.h b/source3/include/g_lock.h
index 13daf3f556..becb71bb67 100644
--- a/source3/include/g_lock.h
+++ b/source3/include/g_lock.h
@@ -43,6 +43,10 @@ NTSTATUS g_lock_unlock(struct g_lock_ctx *ctx, const char *name);
NTSTATUS g_lock_get(struct g_lock_ctx *ctx, const char *name,
struct server_id *pid);
+NTSTATUS g_lock_do(const char *name, enum g_lock_type lock_type,
+ struct timeval timeout,
+ void (*fn)(void *private_data), void *private_data);
+
int g_lock_locks(struct g_lock_ctx *ctx,
int (*fn)(const char *name, void *private_data),
void *private_data);