*LINUXREADLOCK (SETMODE)


10.6

*LINUXREADLOCK={ 0 | 1}

 

The value of this keyword identifies if the Linux OS read locks may be used for PL/B file variables ( FILE, AFILE, IFILE ) opened for record locking.

 

Value

Description

0

Linux OS read locks are not to be used for any file variables opened with this keyword value set to zero.

1

Linux OS read locks may be used for any file variables opened with this keyword value set to one.

Note the following:

  1. If the 'LINUXREADLOCK' is set to one, any file variable ( FILE, AFILE, IFILE ) opened for record locking with LOCKAUTO, SINGLE, and NOWAIT allows Linux 'read locks' to be used. In this case, the Linux 'read locks' are ONLY used in the following PL/B read instructions:

  2.  

    FILE

    READ

    AFILE

    READ, READKG, READKGP

    IFILE

    READ, READKS, READKP

     

  3. The use of Linux OS read locks is ONLY determined by the current value of the LINUXREADLOCK keyword when the file variable is opened using a PL/B OPEN instruction. Also, after a file variable is opened with read locks being used, the Linux read locks continue to be used until the file variable is closed regardless of LINUXREADLOCK keyword setting.

 

 

See Also: List Controls (SETMODE), SETMODE

 



PL/B Language Reference