public void AddThread(string name, ThreadStart start, ThreadPriority priority)
		{
			DebugThreadInterrupter.ThreadWrapper @object = new DebugThreadInterrupter.ThreadWrapper(start, this);
			Thread thread = new Thread(new ThreadStart(@object.DoWork));
			thread.Priority = priority;
			thread.Name = name;
			this.RegisterThread(thread);
			thread.Start();
			D.Sayf(1, "Started thread {0}", new object[]
			{
				name
			});
		}
Example #2
0
        public void AddThread(string name, ThreadStart start, ThreadPriority priority)
        {
            DebugThreadInterrupter.ThreadWrapper @object = new DebugThreadInterrupter.ThreadWrapper(start, this);
            Thread thread = new Thread(new ThreadStart(@object.DoWork));

            thread.Priority = priority;
            thread.Name     = name;
            this.RegisterThread(thread);
            thread.Start();
            D.Sayf(1, "Started thread {0}", new object[]
            {
                name
            });
        }