diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-04 06:15:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-04 06:15:43 +0000 |
commit | 49766b22882fc216dcf884fa5c13cc82979f9330 (patch) | |
tree | cf8f4d54920e6d21a354ecc310bfec2a8af8bc00 /pym/portage_versions.py | |
parent | 9845d081c30352f7d5246ae79f372373b3b0d76a (diff) | |
download | portage-49766b22882fc216dcf884fa5c13cc82979f9330.tar.gz portage-49766b22882fc216dcf884fa5c13cc82979f9330.tar.bz2 portage-49766b22882fc216dcf884fa5c13cc82979f9330.zip |
Change the way the way things that have to call the scheduler interact
with it:
* Return a unique integer id from scheduler.register(), to be passed back
into other scheduler methods.
* Control handler unregistration with the handler's return value, like
some other frameworks do for similar callbacks.
* Add a SpawnProcess.reg_id attribute to store the id returned from
scheduler.register()
* Pass the SpawnProcess.reg_id value into scheduler.schedule() calls,
so the scheduler knows to return when the callback referred to by
the given id unregisters itself by returning False.
svn path=/main/trunk/; revision=10921
Diffstat (limited to 'pym/portage_versions.py')
0 files changed, 0 insertions, 0 deletions