Inheritance: IDisposable
Exemplo n.º 1
0
        public static void Kill(MovingThread thread)
        {
            EventWaitHandle wh = thread.CallDelegInMainLoop(KillMe);

            wh.WaitOne();
            if (thread.ExceptionHappened != null)
            {
                throw thread.ExceptionHappened;
            }
            wh.Close();
        }
Exemplo n.º 2
0
Arquivo: Main.cs Projeto: 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 ();
			}
		}
Exemplo n.º 3
0
        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();
            }
        }
Exemplo n.º 4
0
Arquivo: Main.cs Projeto: mono/uia2atk
		public static void StartRemotely (MovingThread guiThread)
		{
			Start (guiThread);
		}
Exemplo n.º 5
0
Arquivo: Main.cs Projeto: mono/uia2atk
		public static void Kill (MovingThread thread) 
		{
			EventWaitHandle wh = thread.CallDelegInMainLoop (KillMe);
			wh.WaitOne ();
			if (thread.ExceptionHappened != null)
				throw thread.ExceptionHappened;
			wh.Close ();
		}
Exemplo n.º 6
0
 public static void StartRemotely(MovingThread guiThread)
 {
     Start(guiThread);
 }