Merge branch 'master' of github.com:mono/mono
[mono.git] / mcs / class / corlib / System.Threading / SpinLock.cs
index e3fb372dd26551be9327ea5a6349eacb7a0e5eab..4191acbeaf31d149d928a97c19e3599c4b856382 100644 (file)
@@ -89,7 +89,7 @@ namespace System.Threading
 
                        int slot = Interlocked.Increment (ref ticket.Users) - 1;
 
-                       SpinWait wait;
+                       SpinWait wait = new SpinWait ();
                        while (slot != ticket.Value)
                                wait.SpinOnce ();