Amib.Threading.Internal.WorkItemsQueue.WaiterEntry.Timeout C# (CSharp) Méthode

Timeout() public méthode

Mark the wait entry that it has been timed out
public Timeout ( ) : bool
Résultat bool
            public bool Timeout()
            {
                lock (this)
                {
                    // Time out can happen only if the waiter wasn't marked as
                    // signaled
                    if (!_isSignaled)
                    {
                        // We don't remove the waiter from the queue, the DequeueWorkItem
                        // method skips _waiters that were timed out.
                        _isTimedout = true;
                        return true;
                    }
                }
                return false;
            }