Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

LockRecord64

Lock a portion of a file for exclusive access.

Declaration

Source position: amigados.pas line 2295

function LockRecord64(

  fh: LongInt;

  Offset: QWord;

  Length: QWord;

  Mode: LongWord;

  TimeOut: LongWord

):LongInt;

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

TimeOut

  

timeout interval measured in ticks (may be 0)

Description

A timeout may be specified which is the maximum amount of time to wait for the record to be available.

Record locks are cooperative, meaning that they only affect other calls to LockRecord().

See also

LockRecords64

  

Lock several records at the same time.

UnLockRecord64

  

Release a lock made with LockRecord64().


Documentation generated on: 2021-07-30