Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetLockMode

Retrieve the current session-wide lock mode.

Declaration

CTLOCK_MODE ctdbGetLockMode(CTHANDLE Handle)

Description

ctdbGetLockMode() retrieves the current session-wide lock mode. Valid lock modes are presented in Session-Wide Lock Modes. Note that this function does not give the lock status of an individual record. Instead, it tells you if session-wide record locking is turned on or off, suspended or not, etc., so you know if a record will be automatically locked the next time you read it from disk.

  • Handle [in] the Session or any other c-treeDB API .NET Handle.

Returns

ctdbGetLockMode() returns the session-wide lock mode.

See also

ctdbLock(), ctdbIsLockActive(), Locking, Session-Wide Lock Modes

TOCIndex