Inheritance: SyncContext
Ejemplo n.º 1
0
        static DispatchService()
        {
            guiContext = new GuiSyncContext();

            guiThread = Thread.CurrentThread;

            handler                    = new GLib.IdleHandler(guiDispatcher);
            arrBackgroundQueue         = new ArrayList();
            arrGuiQueue                = new ArrayList();
            thrBackground              = new Thread(new ThreadStart(backgroundDispatcher));
            thrBackground.IsBackground = true;
            thrBackground.Priority     = ThreadPriority.Lowest;
            thrBackground.Start();
            DispatchDebug = Environment.GetEnvironmentVariable("MONODEVELOP_DISPATCH_DEBUG") != null;
        }
Ejemplo n.º 2
0
        static DispatchService()
        {
            guiContext = new GuiSyncContext ();

            guiThread = Thread.CurrentThread;

            handler = new GLib.IdleHandler (guiDispatcher);
            arrBackgroundQueue = new ArrayList ();
            arrGuiQueue = new ArrayList ();
            thrBackground = new Thread (new ThreadStart (backgroundDispatcher));
            thrBackground.IsBackground = true;
            thrBackground.Priority = ThreadPriority.Lowest;
            thrBackground.Start ();
            DispatchDebug = Environment.GetEnvironmentVariable ("MONODEVELOP_DISPATCH_DEBUG") != null;
        }