From 4a75acb46c31c6bef7522133e7fcd4b11640e509 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Aug 2011 09:51:59 +0200 Subject: io_thread: add function io_thread_run() --- src/io_thread.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/io_thread.h') diff --git a/src/io_thread.h b/src/io_thread.h index 2daddba86..5687aebb9 100644 --- a/src/io_thread.h +++ b/src/io_thread.h @@ -29,6 +29,14 @@ io_thread_init(void); bool io_thread_start(GError **error_r); +/** + * Run the I/O event loop synchronously in the current thread. This + * can be called instead of io_thread_start(). For testing purposes + * only. + */ +void +io_thread_run(void); + void io_thread_deinit(void); -- cgit v1.2.3