Lock a series of records
Source position: amigados.pas line 1672
function LockRecords( |
recArray: pRecordLock; |
timeout: LongWord |
):LongBool; |
recArray |
|
Array of records to lock |
timeout |
|
maximum number of ticks to wait for a lock to be ready (1/50 seconds) |
Success/failure indication. In case of a success, all the record locks are locked. In case of failure, no record locks are locked.
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.
|
Unlock a list of records |