Port ConcurrentQueue<T> back from corefx
authorStephen Toub <stoub@microsoft.com>
Tue, 31 Jan 2017 16:41:36 +0000 (11:41 -0500)
committerStephen Toub <stoub@microsoft.com>
Wed, 1 Feb 2017 14:59:57 +0000 (09:59 -0500)
commit0b73485685c61b0e46585c93dd7cd5355c137b5f
treec747d04f4c48766ee0cacefc203ffeed2ad651ca
parent8e471bb2ab1e96e84a89cead923f8bc82bf61979
Port ConcurrentQueue<T> back from corefx

It's not exposed from CoreLib, but a) as long as the code is here it's good to have it in sync, and b) we can use it in ThreadPool rather than having a separate concurrent queue implementation (which is very similar to the old ConcurrentQueue design).

Commit migrated from https://github.com/dotnet/coreclr/commit/9cd40ee1ac4705de5542acaf8210c382b5c18087
src/coreclr/src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs