NWTTSSetProcessThresholds
Sets the number of logical and physical locks to perform before implicit locking begins
#include <nwtts.h>
or
#include <nwcalls.h>
NWCCODE N_API NWTTSSetProcessThresholds (
NWCONN_HANDLE conn,
nuint8 logicalLockLevel,
nuint8 physicalLockLevel);
uses calwin32
Function NWTTSSetProcessThresholds
(conn : NWCONN_HANDLE;
logicalLockLevel : nuint8;
physicalLockLevel : nuint8
) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
The thresholds set by NWTTSSetProcessThresholds are valid for the requesting application only. When the application terminates, the default workstation thresholds are restored.
NWTTSSetProcessThresholds either turns off implicit transactions or allows applications always keeping one or more records locked to work. Applications intending to use only explicit transactions, but sometimes generating unnecessary implicit transactions, can call NWTTSSetProcessThresholds to turn off all implicit transactions.
The default threshold for logical and physical locks is 0 unless the number has been changed by calling NWTTSSetConnectionThresholds. 0xFF means no implicit transactions for the lock type are performed.