Commit cd6cc9c6 authored by Pekka Pessi's avatar Pekka Pessi

su-glib: implement su_port_stamp64()

Using su_base_port_waiting() before waiting.
parent 69d778b1
......@@ -172,6 +172,8 @@ su_port_vtable_t const su_source_port_vtable[1] =
su_base_port_max_defer,
su_source_wakeup,
su_source_is_running,
su_base_port_stamp64,
su_base_port_stamp64_offset,
}};
static char const *su_source_name(su_port_t const *self)
......@@ -387,6 +389,8 @@ gboolean su_source_prepare(GSource *gs, gint *return_tout)
enter;
su_base_port_waiting(self);
if (self->sup_base->sup_head) {
*return_tout = 0;
return TRUE;
......@@ -455,6 +459,8 @@ gboolean su_source_dispatch(GSource *gs,
enter;
su_base_port_waiting(self);
if (self->sup_base->sup_head)
su_base_port_getmsgs(self);
......@@ -1016,6 +1022,8 @@ su_duration_t su_source_step(su_port_t *self, su_duration_t tout)
if (src_tout >= 0 && tout > (su_duration_t)src_tout)
tout = src_tout;
su_base_port_waiting(self);
su_wait((su_wait_t *)fds, fds_wait, tout);
g_main_context_check(gmc, priority, fds, fds_wait);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment