Lock a series of records
Source position: amigados.pas line 2245
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 |