summaryrefslogtreecommitdiff
path: root/test/git/async/test_channel.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed async from treeSebastian Thiel2010-06-121-87/+0
|
* Cleaned up channel design, Reader and Writer bases don't require a channel ↵Sebastian Thiel2010-06-121-3/+17
| | | | | | anymore, but are abstract. Added IteratorReader, implementing the reader interface from an iterator. The implementation moved from the TaskIterator to the channel
* channel: Changed design to be more logical - a channel now has any amount of ↵Sebastian Thiel2010-06-101-3/+3
| | | | | | readers and writers, a ready is not connected to its writer anymore. This changes the refcounting of course, which is why the auto-cleanup for the pool is currently broken. The benefit of this are faster writes to the channel, reading didn't improve, refcounts should be clearer now
* Channel: Callbacks reviewed - they are now part of Subclasses of the default ↵Sebastian Thiel2010-06-091-0/+27
| | | | channel implementation, one of which is used as base by the Pool Read channel, releasing it of the duty to call these itself. The write channel with callback subclass allows the transformation of the item to be written
* Channel: removed pseudoconstructor, which clearly improves the design and ↵Sebastian Thiel2010-06-091-4/+2
| | | | | | makes it easier to constomize pool: in serial mode, created channels will be serial-only, which brings 15% of performance
* Channel: Read method revised - now it really really doesn't block anymore, ↵Sebastian Thiel2010-06-091-6/+4
| | | | and it runs faster as well, about 2/3 of the performance we have when being in serial mode
* Its getting better already - intermediate commit before further chaning the ↵Sebastian Thiel2010-06-081-1/+5
| | | | task class
* The new channeldesign actually works, but it also shows that its located at ↵Sebastian Thiel2010-06-081-23/+1
| | | | the wrong spot. The channel is nothing more than an adapter allowing to read multiple items from a thread-safe queue, the queue itself though must be 'closable' for writing, or needs something like a writable flag.
* pool.consumed_tasks: is now a queue to be thread safe, in preparation for ↵Sebastian Thiel2010-06-071-7/+8
| | | | | | multiple connected pools Reduced waiting time in tests to make them complete faster
* channel.read: enhanced to be sure we don't run into non-atomicity issues ↵Sebastian Thiel2010-06-061-1/+1
| | | | related to our channel closed flag, which is the only way not to block forever on read(0) channels which were closed by a thread 'in the meanwhile'
* Improved pool design and started rough implementation, top down to learn ↵Sebastian Thiel2010-06-061-8/+14
| | | | while going. Tests will be written soon for verification, its still quite theoretical
* Renamed mp to async, as this is a much better name for what is actually ↵Sebastian Thiel2010-06-051-0/+61
going on. The default implementation uses threads, which ends up being nothing more than async, as they are all locked down by internal and the global interpreter lock