event: add function BlockingCall()

Replaces io_thread_call().  This approach is more generic and easier
to use due to std::function.
This commit is contained in:
Max Kellermann
2013-08-07 22:42:45 +02:00
parent 9ab0a1f5f1
commit 018f4155eb
6 changed files with 130 additions and 108 deletions

View File

@@ -62,10 +62,4 @@ gcc_pure
bool
io_thread_inside(void);
/**
* Call a function synchronously in the I/O thread.
*/
gpointer
io_thread_call(GThreadFunc function, gpointer data);
#endif