Simplify Dequeue method
authorStephen Toub <stoub@microsoft.com>
Wed, 1 Feb 2017 15:49:27 +0000 (10:49 -0500)
committerStephen Toub <stoub@microsoft.com>
Wed, 1 Feb 2017 15:49:27 +0000 (10:49 -0500)
commit2a0ebaad7dda77624f535014b9cfad394b7e1307
tree0302b6924da029806b1ab6da84404c55a0a1ffc5
parenta687c7e09872cb25c51323a699b8ebbd8a49edeb
Simplify Dequeue method

- Consolidate branches
- Pass resulting work item as a return value rather than an out
- Avoid an unnecessary write to the bool passed by-ref

Commit migrated from https://github.com/dotnet/coreclr/commit/ff1caae983fd65b825c44a331e39a37ffb5b1710
src/coreclr/src/mscorlib/src/System/Threading/ThreadPool.cs