X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.h;h=3078ed15a368f906e8fe3d67a0dca5a9db5cb053;hb=a7804dbc9bd7727d426e78c977511c36bfc6af1c;hp=ca0e203c329388cfb30595f3668b1358f9d32b57;hpb=5e96e7e38fc3a40f0d9076c7ca8f369ad8c91d8c;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index ca0e203c..3078ed15 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -259,6 +259,7 @@ FIXME : explain other important events #include #include #include +#include /* Module Related API */ @@ -266,8 +267,11 @@ FIXME : explain other important events extern GQuark LTTV_VIEWER_CONSTRUCTORS; /* constructor a the viewer */ -typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab); +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 @@ -826,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