public DeadlockException( int threadA, object intendedObjectA, ILockState intendedStateA, ILockState holdingStateA, int threadB, object intendedObjectB, ILockState intendedStateB, ILockState holdingStateB) : base("A deadlock has occured.") { this.threadA = threadA; this.intendedObjectA = intendedObjectA; this.intendedStateA = intendedStateA; this.holdingStateA = holdingStateA; this.threadB = threadB; this.intendedObjectB = intendedObjectB; this.intendedStateB = intendedStateB; this.holdingStateB = holdingStateB; }
public Item(ILockState state) { this.LockState = state; this.AcqusitionState = AcqusitionState.Intent; }
public Lock() { CurrentLockState = new LockedLockState(this); }
public void ChangeLockState(ILockState lockState) { CurrentLockState = lockState; }
public void SetLockStateMachine(ILockState newStateMachine) { lockStateMachine = newStateMachine; }