GSimpleAsyncResult: support reliable cancellation
authorRyan Lortie <desrt@desrt.ca>
Tue, 13 Mar 2012 20:09:01 +0000 (16:09 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 14 Mar 2012 12:36:11 +0000 (08:36 -0400)
commit4804094472e90a537b534c32e3c225b624c4500e
tree331786303affeab1fcf62d3a6d58bcc8d6bc847d
parent53b1afba0eb94f7f836b408d81da7b58c374dc3f
GSimpleAsyncResult: support reliable cancellation

Add a function g_simple_async_result_set_check_cancellable() to provide
a GCancellable that is checked for being cancelled during the call to
g_simple_async_result_propagate_error().

This gives asynchronous operation implementations an easy way to
provide reliable cancellation of those operations -- even in the case
that a positive result has occured and is pending dispatch at the time
the operation is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=672013
docs/reference/gio/gio-sections.txt
gio/gio.symbols
gio/gsimpleasyncresult.c
gio/gsimpleasyncresult.h