MyDAC

TLockType Enumeration

Specifies the type of the table locking.

Unit

MyAccess

Syntax

TLockType = (ltRead, ltReadLocal, ltWrite, ltWriteLowPriority);

Values

Value Meaning
ltRead All connections including the current one can read only from the specified table.
ltReadLocal Similar to ltRead. Moreover, allows non-conflicting INSERT statements to execute while the lock is held.
ltWrite The current connection can read and write to the table. Other connections wait for the UnlockTable call.
ltWriteLowPriority You can use ltWriteLowPriority locks to allow other threads to obtain ltRead locks while the thread is waiting for the ltWrite lock. You should use only ltWriteLowPriority locks if you are sure that eventually there will be a time when no threads will have a ltRead lock.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback