tdb_chainlock - lock a group of keys tdb_chainunlock - unlock a previously locked group of keys
Contents
Description
tdb_chainlock is a low-level function used to lock a particular key (and a number of other keys) without
any checking: any other process attempting to perform tdb operations on those keys will block until
tdb_chainunlock is called.
Name
tdb_chainlock - lock a group of keys tdb_chainunlock - unlock a previously locked group of keys
Notes
It is the user's responsibility to ensure that they do not deadlock the database using these functions:
something which is impossible using the other access functions.
Return Value
A return value of 0 indicates success and -1 indicates failure.
See Also
gdbm(3), tdb(3), tdb_lockall(3).
Samba Oct 13, 2000 TDB_CHAINLOCK(3)
Synopsis
#include<tdb.h>inttdb_chainlock(TDB_CONTEXT*tdb,TDB_DATAkey);voidtdb_chainunlock(TDB_CONTEXT*tdb,TDB_DATAkey);
