gdbus: Avoid blocking on worker thread in connection initialization
authorColin Walters <walters@verbum.org>
Wed, 1 Jun 2011 19:11:02 +0000 (15:11 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 Jun 2011 20:43:34 +0000 (16:43 -0400)
commit7ed328aaf01acdc2537498c9617129e4c3004608
tree1db4f118ef97dc3aac4c8cf031a9cb153b0072e4
parenta588974561532ba5d10971ee95065b4db33a1e1f
gdbus: Avoid blocking on worker thread in connection initialization

I can't see a reason to spin until the worker thread runs, so don't.
This avoids ugly sched_yield() calls that show up in strace and
annoy me; the code is cleaner now too.

We now grab the types needed for the WebKit workaround in the
thread creation area, but only release them when the thread itself
exits.

https://bugzilla.gnome.org/show_bug.cgi?id=651650
gio/gdbusprivate.c