GailTestApp.MovingThread.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
		public void Start ()
		{
			if (alreadyStarted)
			{
				lock (forState)
					this.internalState = ThreadState.Running;
				restart.Set ();
			}
			else
			{
				alreadyStarted = true;
				lock (forState)
					this.internalState = ThreadState.Running;
				this.gThread.Start ();
			}
		}

Usage Example

Ejemplo n.º 1
0
Archivo: Main.cs Proyecto: mono/uia2atk
		public static void Start (MovingThread guiThread)
		{
			if ((guiThread != null) && (guiThread.ThreadState == ThreadState.Running))
				return;

			if (guiThread != null) {

				guiThread.NotMainLoopDeleg = Run;
				guiThread.Start ();
				
				//little hack (it doesn't matter, it's just for the nunit tests) in
				//order to wait for Gtk initialization
				for (int i = 0; i < 20 && win == null; i++)
				Thread.Sleep (250);
			}
			else
			{
				Run ();
			}
		}
All Usage Examples Of GailTestApp.MovingThread::Start