GOutputStream: Add g_output_stream_async_write_is_via_threads()
authorMike Ruprecht <mike.ruprecht@collabora.co.uk>
Sat, 23 Feb 2013 23:42:49 +0000 (17:42 -0600)
committerDan Winship <danw@gnome.org>
Sun, 29 Sep 2013 21:48:40 +0000 (17:48 -0400)
commitdec3bfeebc20d8fee9d6ddd6a7187ac762887f2d
tree8bdc66059edbfc91a2af74ff785219510a6f8da2
parent94a232a4ed6245d0189f7de182f10a7c3825dc73
GOutputStream: Add g_output_stream_async_write_is_via_threads()

In implementing a better g_output_stream_splice_async() and possibly
other situtations it's helpful to know whether the output stream's
write function internally uses threads. If it and the input stream's
read 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 output stream's
g_output_stream_write_async() function internally uses threads.

https://bugzilla.gnome.org/show_bug.cgi?id=691581
gio/gioprivate.h
gio/goutputstream.c