Commit Graph

9 Commits

Author SHA1 Message Date
scottsanderson 4655e643a4 api changes and refactor of sorting tests 2012-08-06 11:05:25 -04:00
fawce 4a582e8952 modified zmq_gen method to yield None when there is no waiting message. This prevents blocking in the next() method of a component. But it requires generators wrapping the component to handle None.
Also modified component's receiver creation to be triggered on the first call to next, rather than iter.
This change means that the zmq context and socket for the component's receiver should always be created in
the same process as the consumer of the generator. Chaining together component wrapped generators will
result in the send process of the last component actually instantiating the receive socket of the prior component.
In this way, the components are actually communicating directly via zmq.

Component's send method now calls the wait_ready(), which waits for the monitor's GO message, inside
the generator loop. This guarantees that the generator's next method is called before the send loop blocks
on the monitor. As a result, components will call __init__ and next() without blocking, mimicking the
behavior of plain generators.
2012-08-04 12:58:07 -04:00
scottsanderson 8437a28c14 generator-style perf now sends a risk report on receipt of DONE 2012-08-03 21:09:05 -04:00
scottsanderson 14067d8323 commit for fawce 2012-08-01 21:42:55 -04:00
scottsanderson 4768bea646 more progress on tsc 2012-08-01 18:53:09 -04:00
scottsanderson 9f7293e2d2 pipeline through merge 2012-08-01 17:19:08 -04:00
fawce 29760dde3a renaming and such for the PR. 2012-07-30 16:13:47 -04:00
scottsanderson 5d9bfe6b92 full sequencing system (minus done from xforms) 2012-07-30 13:51:10 -04:00
scottsanderson cef36c172d commit for fawce 2012-07-27 19:40:42 -04:00