#include "btree.h"
int btunlock(
BTA* btact)
;
The btunlock
function enables a process
to relinquish exclusive access to a file, originally gained
from a call to btlock
.
btunlock
is passed
btact
, which holds the context pointer
of the B Tree file for which exclusive access is no longer
required.
If the B Tree file is not locked, or has been opened for
exclusive access, btunlock
has no
effect.
A non-zero return from btunlock
indicates
an error occurred.