+static void uloop_clear_timeouts(void)
+{
+ struct uloop_timeout *t, *tmp;
+
+ list_for_each_entry_safe(t, tmp, &timeouts, list)
+ uloop_timeout_cancel(t);
+}
+
+static void uloop_clear_processes(void)
+{
+ struct uloop_process *p, *tmp;
+
+ list_for_each_entry_safe(p, tmp, &processes, list)
+ uloop_process_delete(p);
+}
+