update stop for event list
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / lttvwindow.h
index e690ec570c70a62f1e7cea84a04de55fc2c30a11..3078ed15a368f906e8fe3d67a0dca5a9db5cb053 100644 (file)
@@ -269,6 +269,9 @@ extern GQuark LTTV_VIEWER_CONSTRUCTORS;
 /* constructor a the viewer */
 typedef GtkWidget* (*lttvwindow_viewer_constructor)(LttvPlugin *plugin);
 
+extern gint lttvwindow_preempt_count;
+
+#define CHECK_GDK_INTERVAL 50000
 
 /**
  * Function to register a view constructor so that main window can generate
@@ -827,4 +830,30 @@ GtkWidget *main_window_get_widget(Tab *tab);
 
 void set_current_position(Tab *tab, const LttvTracesetContextPosition *pos);
 
+
+/**
+ * Function to disable the EventsRequests scheduler, nestable.
+ *
+ */
+static inline void lttvwindow_events_request_disable(void)
+{
+  lttvwindow_preempt_count++;
+}
+
+/**
+ * Function to restore the EventsRequests scheduler, nestable.
+ *
+ */
+static inline void lttvwindow_events_request_enable(void)
+{
+  lttvwindow_preempt_count--;
+}
+
+
+
+
+
+
+
+
 #endif //LTTVWINDOW_H
This page took 0.022876 seconds and 4 git commands to generate.