chiark / gitweb /
gudev: Deliver ::uevent signal in the thread-default main loop
authorDavid Zeuthen <davidz@redhat.com>
Tue, 7 Sep 2010 15:01:23 +0000 (11:01 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 7 Sep 2010 15:04:57 +0000 (11:04 -0400)
commitcbdf255e255adc0f30b40be296fbbf2f3cd2be80
tree49dddc4729a0fa6ecda4336aa4cc5835c841c7c5
parentcff2f9a3c854fa13067477c797ba926ebcf7dede
gudev: Deliver ::uevent signal in the thread-default main loop

... that the GUdevClient object was constructed in. This change makes
GUdev follow the GLib guidelines and, more importantly, makes it
possible to actually use the library in a multi-threaded
application. Prior to this patch, signals were emitted in the thread
that ran the "default" main loop.

Signed-off-by: David Zeuthen <davidz@redhat.com>
extras/gudev/gudevclient.c