Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> ttswsthrget() / ttswsthrset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 TTSWSThrGet() / TTSWSThrSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the TTS workstation lock threshold.

 Syntax:
 iWSThr = TTSWSThrGet()
 iWSThr = TTSWSThrSet( iNewThr )

 Parameters:
 iNewThr The new number of record locks.

 Returns:
 A numeric value (signed short int).

 Description:
 TTSWSThrGet() returns the number of record locks which may be made
 before an implicit TTS transaction is started.

 TTSWSThrSet() sets the number of record locks to iNewThr.

 Returns NOVERRINT if an error occurs.

 Example:
 // To display the number of record locks which may be made before an
 // implicit transaction is started:
 iLockCount = TTSWSThrGet()
 if ( iLockCount != NOVERRINT )
    ? "The implicit transaction lock threshold is ", LockCount
 endif
 // To set the TTS program threshold so that 3 record locks may be made
 // before a TTS transaction is started:
 iOldLockCount = TTSWSThrSet( 3 )
 iNewLockCount = TTSWSThrGet()
 if ( iNewLockCount != NOVERRINT )
    ? "The implicit transaction lock threshold is now ", iNewLockCount
 endif

 Notes:
 The number of record locks returned or set using this function is
 valid not only for the requesting program but also for subsequent programs.

 TTS thresholds which should only be valid for a particular program can be
 set using the TTSAppThresholdSet() function.

See Also: TTSBegin() TTSEnd() TTSAbort() TTSAppThresholdGet() / TTSAppThresholdSet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson