tdb: locking cleanup
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Aug 2009 04:07:47 +0000 (13:37 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Aug 2009 04:07:47 +0000 (13:37 +0930)
commitb2c0ebc6f53b05b222937991f100f8a89701f9b1
treedcbddbc75a51705cdc9248bf501dfca720e2d81f
parent450a9a4c70af36f3be1eb572d513ffebf25c3797
tdb: locking cleanup

Explicitly split lock and unlock, for future replacement with user-supplied functions.
Use explicit flags enum for marking, blocking and probing.
Indicate upon unlock whether we had a read or write lock (POSIX doesn't care, but
wrappers might, and it's nice to be explicit).
ccan/tdb/io.c
ccan/tdb/lock.c
ccan/tdb/open.c
ccan/tdb/tdb.c
ccan/tdb/tdb_private.h
ccan/tdb/test/run-3G-file.c
ccan/tdb/transaction.c
ccan/tdb/traverse.c