Inheritance: SyncContext
コード例 #1
0
ファイル: DispatchService.cs プロジェクト: tabrath/meshwork
        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;
        }
コード例 #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;
        }