Home | Trees | Indices | Help |
|
---|
|
Keep track of objects that are processed by JobMaster.
Thread-savety:
|
|||
| __init__(self, objects, redistribute=1) | ||
|
__activate(self,
item) not thread-save, synchronize on self.lock! |
||
|
deactivate(self,
item) mark item as processed. |
||
[object]
|
not_done(self) Not yet finished items. |
||
[object]
|
not_started(self) Returns list of not yet started items |
||
[object]
|
activ(self) Returns list of currently active (started) items |
||
1|0
|
done(self) Returns 1 if all items have been processed and finished |
||
([object], int) OR None
|
next_chunk(self,
nmax) Get next chunk of at most nmax items that need to be processed. |
||
| __str__(self) | ||
| __repr__(self) |
|
|
not thread-save, synchronize on self.lock! |
mark item as processed. not thread-save, synchronize on self.lock! |
Not yet finished items. The not-yet-started come first, then come the active items ordered by how often they have already been distributed.
|
|
|
|
Get next chunk of at most nmax items that need to be processed. Thread-save.
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 22 20:11:45 2006 | http://epydoc.sourceforge.net |