Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

LockRecord

Locks a portion of a file

Declaration

Source position: amigados.pas line 2244

function LockRecord(

  Fh: Pointer;

  Offset: LongWord;

  Length: LongWord;

  Mode: LongWord;

  Timeout: LongWord

):LongBool;

Arguments

Fh

  

File handle for the file to lock a record of

Offset

  

Starting position of the lock

Length

  

Length of the record in bytes

Mode

  

Lock type (REC_*) For the IMMED modes, the timeout is ignored.

Timeout

  

imeout interval in ticks (1/50 seconds). 0 is legal.

Description

Lock a portion of a file for exclusive access. A timeout may be specified which is the maximum amount of time to wait for the record to be available.

See also

LockRecords

  

Lock a series of records

UnLockRecord

  

Unlock a record

UnLockRecords

  

Unlock a list of records


Documentation generated on: 2021-07-30