BitSharper.Threading.Locks.ReentrantLock.FairSync.TryLock C# (CSharp) Method

TryLock() public method

public TryLock ( System.TimeSpan timespan ) : bool
timespan System.TimeSpan
return bool
            public override bool TryLock(TimeSpan timespan)
            {
                var caller = Thread.CurrentThread;
                lock (this)
                {
                    if (GetHold(caller)) return true;
                }
                var n = new WaitNode();
                return n.DoTimedWait(this, timespan);
            }