Product Documentation

V9 Update Guide

Previous Topic

Next Topic

Recursive Locking Support

FairCom introduces an additional locking mode, recursive locks. By recursive lock, we mean a lock applied to a record by a user already owning the same lock on the same record, and such an additional lock request is “counted.” Normally for an unlock call, c-tree removes any record locks, regardless of the number of times it was locked.

Recursive locks are typically useful for an application that must make lock and unlock calls without knowledge of existing locks on the same record by the same application. Recursive locks must be requested explicitly through a lock mode. The following API calls support OR-ing in the new lock mode bit, ctLK_RECR:

  • Begin
  • Commit
  • LockISAM
  • LockCtData

TOCIndex