feat: Dispatcher constructor separates render_rx
The dispatcher no longer owns the render results message channel, and instead passes it out as a separate item during construction.
This commit is contained in:
@@ -66,8 +66,7 @@ fn main() {
|
||||
};
|
||||
|
||||
thread::scope(|s| {
|
||||
let mut dispatcher = thread_utils::Dispatcher::new(&small_rng);
|
||||
let scanline_receiver = dispatcher.render_rx;
|
||||
let (mut dispatcher, mut scanline_receiver) = thread_utils::Dispatcher::new(&small_rng);
|
||||
|
||||
s.spawn(move || {
|
||||
for y in (0..image.1).rev() {
|
||||
|
||||
Reference in New Issue
Block a user