mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 18:08:54 +02:00
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:
6
glib.h
6
glib.h
@@ -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);
|
||||
|
Reference in New Issue
Block a user