21 namespace Deveel.Data.Transactions {
27 locks =
new Lock[lockCount];
32 private bool IsUnlocked {
get; set; }
35 locks[lockIndex++] = @lock;
40 for (
int i = locks.Length - 1; i >= 0; --i) {
49 for (
int i = locks.Length - 1; i >= 0; --i) {
50 var tableLock = locks[i];
51 if (tableLock.Lockable == lockable) {
57 throw new Exception(
"The given object was not found in the lock list for this handle");
61 for (
int i = locks.Length - 1; i >= 0; i--) {
62 if (locks[i].Lockable == lockable)
LockHandle(int lockCount)
bool IsHandled(ILockable lockable)
void CheckAccess(ILockable lockable, AccessType accessType)
void CheckAccess(AccessType accessType)