diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-12 14:22:54 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-12 14:23:25 +0100 |
commit | 79100c242153ea174a4405afd45cbf635da313aa (patch) | |
tree | a48e26f1a73fb0ff1ebb592ac7b8c405004e2620 /source3/include | |
parent | 1728b5fa6f0efd443799550ab630abd8282a3c9c (diff) | |
download | samba-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.h | 4 |
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); |