Package portage :: Package util :: Package _eventloop :: Module GlibEventLoop
[hide private]

Source Code for Module portage.util._eventloop.GlibEventLoop

 1  # Copyright 2012 Gentoo Foundation 
 2  # Distributed under the terms of the GNU General Public License v2 
 3   
4 -class GlibEventLoop(object):
5 6 # TODO: Support multiprocessing by using a separate glib.MainContext 7 # instance for each process. 8 supports_multiprocessing = False 9
10 - def __init__(self):
11 import gi.repository.GLib as glib 12 self.IO_ERR = glib.IO_ERR 13 self.IO_HUP = glib.IO_HUP 14 self.IO_IN = glib.IO_IN 15 self.IO_NVAL = glib.IO_NVAL 16 self.IO_OUT = glib.IO_OUT 17 self.IO_PRI = glib.IO_PRI 18 self.iteration = glib.main_context_default().iteration 19 self.child_watch_add = glib.child_watch_add 20 self.idle_add = glib.idle_add 21 self.io_add_watch = glib.io_add_watch 22 self.timeout_add = glib.timeout_add 23 self.source_remove = glib.source_remove
24