HttpClientUtils/ChangeableSemaphoreSlim.cs
/// <summary>Creates a new task and stores it into the async waiters list.</summary>
/// <returns>The created task.</returns>
Creates a new task and stores it into the async waiters list.
Creates a new task and stores it into the async waiters list .
private TaskNode CreateAndAddAsyncWaiter()
		{
			Interlocked.Increment(ref _asyncWaitCount);
			var task = new TaskNode();
			if (_mAsyncHead == null)
			{
				_mAsyncHead = task;
				_mAsyncTail = task;
			}
			else
			{
				if (_mAsyncTail != null)
				{
					_mAsyncTail.Next = task;
					task.Prev = _mAsyncTail;
				}
				_mAsyncTail = task;
			}
			return task;
		}
private TaskNode CreateAndAddAsyncWaiter ( ) { Interlocked . Increment ( ref _asyncWaitCount ) ; var task = new TaskNode ( ) ; if ( _mAsyncHead == null ) { _mAsyncHead = task ; _mAsyncTail = task ; } else { if ( _mAsyncTail != null ) { _mAsyncTail . Next = task ; task . Prev = _mAsyncTail ; } _mAsyncTail = task ; } return task ; }
Creates a new task and stores it into the async waiters list.
Creates a new task and stores it into the async waiters list .
// Create the task // Add it to the linked list // Hand it back
The created task.
The created task .