public Lock(object owner, ref SpinLock spinLock) { this.spinLock = new Ref <SpinLock>(owner, ref spinLock); this.lockTaken = false; spinLock.Enter(ref this.lockTaken); }