HttpClientUtils/ChangeableSemaphoreSlim.cs
/// <summary>Removes the waiter task from the linked list.</summary>
/// <param name="task">The task to remove.</param>
/// <returns>true if the waiter was in the list; otherwise, false.</returns>
Removes the waiter task from the linked list.
Removes the waiter task from the linked list .
private void RemoveAsyncWaiter(TaskNode task)
		{
			Interlocked.Decrement(ref _asyncWaitCount);
			if (task.Next != null) task.Next.Prev = task.Prev;
			if (task.Prev != null) task.Prev.Next = task.Next;
			if (_mAsyncHead == task) _mAsyncHead = task.Next;
			if (_mAsyncTail == task) _mAsyncTail = task.Prev;
			task.Next = task.Prev = null;
		}
private void RemoveAsyncWaiter ( TaskNode task ) { Interlocked . Decrement ( ref _asyncWaitCount ) ; if ( task . Next != null ) task . Next . Prev = task . Prev ; if ( task . Prev != null ) task . Prev . Next = task . Next ; if ( _mAsyncHead == task ) _mAsyncHead = task . Next ; if ( _mAsyncTail == task ) _mAsyncTail = task . Prev ; task . Next = task . Prev = null ; }
Removes the waiter task from the linked list.
Removes the waiter task from the linked list .
// Remove it from the linked list // Make sure not to leak
true if the waiter was in the list; otherwise, false.
true if the waiter was in the list ; otherwise false .
task
TaskNode
The task to remove.
The task to remove .