Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTBase::Unlock

Syntax

void Unlock ( )

Parameters

This method has no parameters.

Description

Frees all session wide locks held by the program. The session wide locks obtained a call to Lock are also released by Abort() and Commit().

Notice that this call does not free the locks obtained with CTRecord::LockRecord(). CTRecord::UnlockRecord() can be used to free just one specific record lock, or CTTable::UnlockTable() can be used to release all records from one table, obtained with CTRecord::LockRecord().

Return

None.

See also

Lock(), IsLockActive(), GetLockMode(), Commit(), Abort(), CTRecord::UnlockRecord(), CTTable::UnlockTable(), Locking

TOCIndex