public void EnterLock(ref bool flag) { flag = false; if (!sLock.IsHeldByCurrentThread) { sLock.Enter(ref flag); } }
public CSScopeMgrLite(SpinLockRef sl) { _sl = sl; _flag = false; if (!_sl.IsHeldByCurrentThread) { //bool flag = false; _sl.Enter(ref _flag); //_flag = flag; } }