[gio] minor improvements to g_cancellable_cancel()
authorBenjamin Otte <otte@gnome.org>
Sun, 5 Jul 2009 19:34:39 +0000 (21:34 +0200)
committerBenjamin Otte <otte@gnome.org>
Sun, 5 Jul 2009 19:36:03 +0000 (21:36 +0200)
commitc85ff0c75004736d5c8798e3b47a47e0fc67ac70
tree35cb635126131302c8eb44846a5a531c57c8bdac
parent8a2e617e41e3f605ea0206832f0c2f346bfe008e
[gio] minor improvements to g_cancellable_cancel()

- make this function not crash when cancellable is NULL
- avoid locking when the cancellable has already been cancelled
gio/gcancellable.c