diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-02-09 12:04:42 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-02-09 12:04:42 -0800 |
commit | 56337b00ea46d96037037816d7b5c7904825b8a9 (patch) | |
tree | 1f4c78f0571dcf2feab17030e4ccdd987839bff5 /pym/portage/util/_eventloop/EventLoop.py | |
parent | 7a6c34cc6bd6eb20a97e05347f87a0157f4ae58a (diff) | |
download | portage-56337b00ea46d96037037816d7b5c7904825b8a9.tar.gz portage-56337b00ea46d96037037816d7b5c7904825b8a9.tar.bz2 portage-56337b00ea46d96037037816d7b5c7904825b8a9.zip |
Add global_event_loop() and GlibEventLoop.
This causes all PollScheduler instances within a given process to share
a singleton EventLoop instance, and also makes it possible to swap in
glib's main loop for all portage event loops in the main process.
Diffstat (limited to 'pym/portage/util/_eventloop/EventLoop.py')
-rw-r--r-- | pym/portage/util/_eventloop/EventLoop.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/util/_eventloop/EventLoop.py b/pym/portage/util/_eventloop/EventLoop.py index 3f4d35445..aa78ccd15 100644 --- a/pym/portage/util/_eventloop/EventLoop.py +++ b/pym/portage/util/_eventloop/EventLoop.py @@ -13,6 +13,8 @@ from _emerge.PollSelectAdapter import PollSelectAdapter class EventLoop(object): + supports_multiprocessing = True + class _idle_callback_class(SlotObject): __slots__ = ("args", "callback", "source_id") |