streams: add private 'async close via threads' API

Desktop / GNOME / GLib - Ryan Lortie [desrt.ca] - 17 February 2015 15:17 UTC

Add an internal helper to find out if close_async() is implemented via threads using the default implementation in the base class.

We will use this to decide if we should do a 'pure async' close of a GIOStream or not.

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

cb40c55 streams: add private 'async close via threads' API
gio/ginputstream.c | 20 ++++++++++++++++++++
gio/gioprivate.h | 2 ++
gio/goutputstream.c | 19 +++++++++++++++++++
3 files changed, 41 insertions(+)

Upstream: git.gnome.org


  • Share