aboutsummaryrefslogtreecommitdiffstats
path: root/src/io_thread.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-20 21:26:59 +0200
committerMax Kellermann <max@duempel.org>2011-09-20 21:27:17 +0200
commit0c0400b6fc10219ca545a25643ceabe576d5181b (patch)
tree7f652e77066ca4308738ef7b864a8194487c0c42 /src/io_thread.h
parent2e83af7c2184829128448a6b2d19a2eb5ab94145 (diff)
downloadmpd-0c0400b6fc10219ca545a25643ceabe576d5181b.tar.gz
mpd-0c0400b6fc10219ca545a25643ceabe576d5181b.tar.xz
mpd-0c0400b6fc10219ca545a25643ceabe576d5181b.zip
io_thread: add function _timeout_add()
Same as _timeout_add_seconds(), but this one has millisecond resolution.
Diffstat (limited to '')
-rw-r--r--src/io_thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io_thread.h b/src/io_thread.h
index d1a203aa3..8ff5a71e5 100644
--- a/src/io_thread.h
+++ b/src/io_thread.h
@@ -64,6 +64,10 @@ io_thread_idle_add(GSourceFunc function, gpointer data);
G_GNUC_MALLOC
GSource *
+io_thread_timeout_add(guint interval_ms, GSourceFunc function, gpointer data);
+
+G_GNUC_MALLOC
+GSource *
io_thread_timeout_add_seconds(guint interval,
GSourceFunc function, gpointer data);