A game framework written with osu! in mind.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Avoid using dangerous local variable in test

+1 -4
+1 -4
osu.Framework.Tests/Threading/ThreadedTaskSchedulerTest.cs
··· 40 40 [Test] 41 41 public void EnsureEventualDisposalWithStuckTasks() 42 42 { 43 - bool running = true; 44 - 45 43 ManualResetEventSlim exited = new ManualResetEventSlim(); 46 44 47 45 Task.Run(() => ··· 50 48 { 51 49 Task.Factory.StartNew(() => 52 50 { 53 - while (running) 51 + while (!exited.IsSet) 54 52 Thread.Sleep(100); 55 53 }, default, TaskCreationOptions.HideScheduler, taskScheduler); 56 54 } ··· 59 57 }); 60 58 61 59 Assert.That(exited.Wait(30000)); 62 - running = false; 63 60 } 64 61 } 65 62 }