Beispiel #1
0
        internal static void Initialize()
        {
            if (guiContext != null)
            {
                return;
            }

            guiContext = new GuiSyncContext();

            SynchronizationContext = new GtkSynchronizationContext();
        }
Beispiel #2
0
        static DispatchService()
        {
            guiContext = new GuiSyncContext();
            guiThread  = Thread.CurrentThread;

            handler = new GLib.TimeoutHandler(guiDispatcher);

            thrBackground = new Thread(new ThreadStart(backgroundDispatcher))
            {
                Name         = "Background dispatcher",
                IsBackground = true,
                Priority     = ThreadPriority.Lowest,
            };
            thrBackground.Start();

            DispatchDebug = Environment.GetEnvironmentVariable("MONODEVELOP_DISPATCH_DEBUG") != null;
        }
Beispiel #3
0
        internal static void Initialize()
        {
            if (guiContext != null)
            {
                return;
            }

            guiContext = new GuiSyncContext();
            guiThread  = Thread.CurrentThread;

            handler = new GLib.TimeoutHandler(guiDispatcher);

            thrBackground = new Thread(new ThreadStart(backgroundDispatcher))
            {
                Name         = "Background dispatcher",
                IsBackground = true,
                Priority     = ThreadPriority.Lowest,
            };
            thrBackground.Start();

            DispatchDebug = Environment.GetEnvironmentVariable("MONODEVELOP_DISPATCH_DEBUG") != null;

            SynchronizationContext = new GtkSynchronizationContext();
        }