GIOStream: support for unemulated async close()
authorRyan Lortie <desrt@desrt.ca>
Tue, 20 Jan 2015 13:11:02 +0000 (08:11 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 17 Feb 2015 21:17:01 +0000 (16:17 -0500)
commitc2c0a6ae5c8a0e924cb4b3a25b6adadcad7bd87e
tree1ca137f0365aee407d1f797d36b71d19e2b84d1e
parentcb40c553aefff522cf3c6ff8af783afa3e217649
GIOStream: support for unemulated async close()

Add an implementation of non-thread-emulated async close of a GIOStream
if either of the underlying stream objects support it.

This prevents us from calling close() functions from another thread on
an object that may not be expecting that.  It also allows us to skip the
thread entirely in case our objects support a pure async close.

https://bugzilla.gnome.org/show_bug.cgi?id=741630
gio/giostream.c