Lines Matching full:glib
12 from gi.repository import GLib
16 # All GLIB method calls should wait this many seconds by default
19 # GLib thread name that will run the mainloop.
20 GLIB_THREAD_NAME = 'glib'
24 """Detected a situation that will cause a deadlock in GLib.
36 """Threads method call to glib thread and waits for result.
39 we pipe all dbus function to the mainloop using GLib.idle_add which runs the
45 @param thread_name: Name of the thread that should be running GLib.Mainloop.
54 This method is called by GLib and added via GLib.idle_add. It will
55 be run in the same thread as the GLib mainloop.
62 @return False so that glib doesn't reschedule this to run again.
86 """Sends method call to GLib and waits for its completion.
100 # Make sure we're not scheduling in the GLib thread since that'll
106 '{} called in GLib thread'.format(method))
119 logging.info('%s: Adding %s to GLib.idle_add',
121 GLib.idle_add(call_and_signal, data)
124 # Wait for the result from the GLib call
137 """Marks callbacks that are called by GLib and checks for errors.
146 '{} should be called by GLib'.format(method))