NWTTSSetProcessThresholds(3nw)


NWTTSSetProcessThresholds -- sets number of logical and physical locks to perform before implicit locking

Synopsis

   #include <nwtts.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWTTSSetProcessThresholds (NWCONN_HANDLE conn, nuint8 logicalLockLevel, nuint8 physicalLockLevel);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle.

logicalLockLevel
(IN) Specifies the number of logical record locks to allow before implicit transactions begin (0-255).

physicalLockLevel
(IN) Specifies the number of physical record locks to allow before implicit transactions begin (0-255).

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x8996
SERVER_OUT_OF_MEMORY

Notices

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.

Services

Transaction Tracking

NCP calls

0x2222 34 6 TTS Set Application Thresholds

 
 0x2222   34   6   TTS Set Application Thresholds 

References

NWTTSGetProcessThresholds(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.