diff options
| author | Volker Lendecke <vl@samba.org> | 2014-09-14 11:15:34 +0200 |
|---|---|---|
| committer | Volker Lendecke <vl@samba.org> | 2014-09-18 20:36:11 +0200 |
| commit | 5454f71fc05c551c2465c2d10ee5e0971058bf02 (patch) | |
| tree | a1171f6e9c1d6c3a1c76edb05d552777f90c83ce /source3/include | |
| parent | 3ffff13e0d66ac6f871c3d87d15c5c3c8095ed33 (diff) | |
| download | samba-5454f71fc05c551c2465c2d10ee5e0971058bf02.tar.gz samba-5454f71fc05c551c2465c2d10ee5e0971058bf02.tar.xz samba-5454f71fc05c551c2465c2d10ee5e0971058bf02.zip | |
lib: Move tdb lock timeout fns to source3
This is not the nicest code and needs to be replaced. Remove it from
common.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'source3/include')
| -rw-r--r-- | source3/include/util_tdb.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/include/util_tdb.h b/source3/include/util_tdb.h index c9e9e409c4..5a58a6b67b 100644 --- a/source3/include/util_tdb.h +++ b/source3/include/util_tdb.h @@ -46,4 +46,23 @@ int tdb_data_cmp(TDB_DATA t1, TDB_DATA t2); char *tdb_data_string(TALLOC_CTX *mem_ctx, TDB_DATA d); +/**************************************************************************** + Lock a chain, with timeout. +****************************************************************************/ +int tdb_chainlock_with_timeout( struct tdb_context *tdb, TDB_DATA key, + unsigned int timeout); + +/**************************************************************************** + Lock a chain by string, with timeout Return non-zero if lock failed. +****************************************************************************/ +int tdb_lock_bystring_with_timeout(struct tdb_context *tdb, const char *keyval, + int timeout); + +/**************************************************************************** + Readlock a chain by string, with timeout Return non-zero if lock failed. +****************************************************************************/ +int tdb_read_lock_bystring_with_timeout(TDB_CONTEXT *tdb, const char *keyval, + unsigned int timeout); + + #endif /* __TDBUTIL_H__ */ |
