Bug 562452 - Ensure we return G_IO_ERROR_CANCELLED if cancelling
authorAlexander Larsson <alexl@redhat.com>
Wed, 10 Dec 2008 13:25:59 +0000 (13:25 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Wed, 10 Dec 2008 13:25:59 +0000 (13:25 +0000)
commit3b4ad625b9de47afd64a54a286591cb66c419ab7
tree3fb84ab3d03cedb5574b3b3d2aab9f46306c7f0d
parentb7c11505f91e3353fc6822a14b6bb4f2100fe67f
Bug 562452 - Ensure we return G_IO_ERROR_CANCELLED if cancelling

2008-12-10  Alexander Larsson  <alexl@redhat.com>

Bug 562452 - Ensure we return G_IO_ERROR_CANCELLED if cancelling
g_simple_async_result_run_in_thread

        * gsimpleasyncresult.c:
Make g_simple_async_result_run_in_thread check cancellation before
calling out to the user in the callback. This means we guarantee
reporting cancels of async operations from the main threads, which
is probably more in line with what users expect.

Note that there are still no such guarantees for cancelling sync
operations or cancelling async operation from outside the main
thread. Furthermore, the exact behaviour of async implementations
not using run_in_thread may differ.

svn path=/trunk/; revision=7740
gio/ChangeLog
gio/gsimpleasyncresult.c