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

LockRecords

Lock a series of records

Declaration

Source position: amigados.pas line 1672

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