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; }
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; }