SpinLock.TryEnter fail fast for timeout 0 (dotnet/coreclr#6952)
authorBen Adams <thundercat@illyriad.co.uk>
Fri, 14 Oct 2016 14:19:41 +0000 (15:19 +0100)
committerJan Kotas <jkotas@microsoft.com>
Fri, 14 Oct 2016 14:19:41 +0000 (07:19 -0700)
commitfcdf704e1043233374aaed200f23e65f7a5a5109
tree34da57c8b94b517c4d866f9d781e0ce8234bbcd0
parentcf0186e00e9141203f8c3ec080520bfa2c6dea38
SpinLock.TryEnter fail fast for timeout 0 (dotnet/coreclr#6952)

* SpinLock.TryEnter fail fast for timeout 0 (2)

* Don't over check SpinLock timeout

When 1ms unlikely to have passed

Commit migrated from https://github.com/dotnet/coreclr/commit/0855b70b2542de60592cba7fe1c91bedb55566f4
src/coreclr/src/mscorlib/src/System/Threading/SpinLock.cs