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

LockRecords

Lock a series of records

Declaration

Source position: amigados.pas line 2478

function LockRecords(

  RecArray: PRecordLock;

  TimeOut: LongWord

):LongBool;

Arguments

RecArray

  

Array of records to lock

TimeOut

  

maximum number of ticks to wait for a lock to be ready (1/50 seconds)

Function result

Success/failure indication. In case of a success, all the record locks are locked. In case of failure, no record locks are locked.

Description

Lock several records at the same time. The timeout specified is applied to each lock to attempt. The array of RecordLock:s is terminated with an entry where rec_FH is equal to nil. A set of records should always be locked in the same order so as to reduce possiblities of deadlock.

See also

UnLockRecords

  

Unlock a list of records


Documentation generated on: 2021-07-30