GInputStream: Add g_input_stream_async_read_is_via_threads()
authorMike Ruprecht <mike.ruprecht@collabora.co.uk>
Sat, 23 Feb 2013 23:32:31 +0000 (17:32 -0600)
committerDan Winship <danw@gnome.org>
Sun, 29 Sep 2013 21:48:40 +0000 (17:48 -0400)
commit94a232a4ed6245d0189f7de182f10a7c3825dc73
treef1057141659d1dd125d294c13a0f79fea2e11719
parentab5aa2aa3a43cbd94aa6d7f3d683f9875df7249a
GInputStream: Add g_input_stream_async_read_is_via_threads()

In implementing a better g_output_stream_splice_async() and possibly
other situtations it's helpful to know whether the input stream's
read function internally uses threads. If it and the output stream's
write async functions use threads, then the splice function could
spawn a single thread for better efficiency.

This patch adds a function to determine whether an input stream's
g_input_stream_read_async() function internally uses threads.

https://bugzilla.gnome.org/show_bug.cgi?id=691581
gio/Makefile.am
gio/ginputstream.c
gio/gioprivate.h [new file with mode: 0644]