Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

LOKREC() modes to unlock all records in all files of the specified type that are open by the caller

LOKREC() function's ctFREE_FILE mode now supports options to free ALL locks in ALL specified types of files that a caller has open. To use this feature, call LOKREC() with mode of ctFREE_FILE, recbyt of zero (it is ignored), and set datno to one, or a combination of the following values:

  • ctFREEALL_NOTRAN - free all non-transaction file locks
  • ctFREEALL_NOIICT - free all transaction-controlled file locks without IICT enabled
  • ctFREEALL_IICT - free all transaction-controlled file locks with IICT enabled
  • ctFREEALL_TRAN - free all transaction-controlled file locks
  • ctFREEALL_ALL - free all file locks

Example

Free all locks in all non-transaction files and all transaction-controlled files that are not using IICT that the caller has open.

rc = LOKREC( ctFREEALL_NOTRAN | ctFREEALL_NOIICT,ctFREE_FILE, 0 );

TOCIndex