[Socket] Use SemaphoreSlim instead of Queue (#3633)
authorLudovic Henry <ludovic@xamarin.com>
Sun, 25 Sep 2016 17:54:07 +0000 (19:54 +0200)
committerGitHub <noreply@github.com>
Sun, 25 Sep 2016 17:54:07 +0000 (19:54 +0200)
commit13c15c25fb349ab80fbdc930f885800e8ad4b8ac
tree3da80dbca4697f9b3329d7b31f323dac2e8ce921
parent3a3d080e175a8118d587e351fe78b47e96b6dee7
[Socket] Use SemaphoreSlim instead of Queue (#3633)

This uses the same approach as corefx's FileStream. This simplifies the code, as well as make the intent of the queue clearer.
mcs/class/System/System.Net.Sockets/Socket.cs
mcs/class/System/System.Net.Sockets/SocketAsyncResult.cs