public Worker(Simulator sim) { this.simulator = sim; thread = new Thread(new ThreadStart(Run)); thread.IsBackground = true; thread.Name = "RVO Simulator Thread"; thread.Start(); }
public Worker(Simulator sim) { this.simulator = sim; var thread = new Thread(new ThreadStart(Run)) { IsBackground = true, Name = "RVO Simulator Thread" }; thread.Start(); }
public Worker(Simulator sim) { this.simulator = sim; var thread = new Thread(new ThreadStart(Run)); thread.IsBackground = true; #if !UNITY_SWITCH || UNITY_EDITOR // Note: Setting the thread name seems to crash when deploying for Switch: https://forum.arongranberg.com/t/path-processor-crashing-nintendo-switch-build/6584 thread.Name = "RVO Simulator Thread"; #endif thread.Start(); }
public Worker (Simulator sim) { this.simulator = sim; thread = new Thread (new ThreadStart (Run)); thread.IsBackground = true; thread.Name = "RVO Simulator Thread"; thread.Start (); }