s/current_time/dispatch_time/ for the dispatch() handlers. refetch the

Wed Jan 26 05:24:38 2000  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gmain.c: s/current_time/dispatch_time/ for the dispatch() handlers.
        refetch the current time after invocation of poll() to cover up for
        the time spent in that function call.
This commit is contained in:
Tim Janik
2000-01-26 04:29:06 +00:00
committed by Tim Janik
parent 948f64a183
commit ce4d6765c9
12 changed files with 86 additions and 24 deletions

6
glib.h
View File

@@ -138,7 +138,7 @@ extern "C" {
* as such; using this with a dynamically allocated array will give
* incorrect results.
*/
#define G_N_ELEMENTS(arr) (sizeof(arr) / sizeof((arr)[0]))
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
/* Define G_VA_COPY() to do the right thing for copying va_list variables.
* glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy.
@@ -2649,7 +2649,7 @@ struct _GSourceFuncs
GTimeVal *current_time,
gpointer user_data);
gboolean (*dispatch) (gpointer source_data,
GTimeVal *current_time,
GTimeVal *dispatch_time,
gpointer user_data);
GDestroyNotify destroy;
};
@@ -2677,7 +2677,7 @@ gboolean g_source_remove_by_source_data (gpointer source_data);
gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
gpointer user_data);
void g_get_current_time (GTimeVal *result);
void g_get_current_time (GTimeVal *result);
/* Running the main loop */
GMainLoop* g_main_new (gboolean is_running);