From 89937e7bc53bcdf6738bc378d02978ece8a205e6 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 26 Sep 2016 08:28:38 -0700 Subject: Clean up event_loop module The main loop body was originally all written inline. There's now separate functions for each of the actions the loop handles including channel events, pty reading, and pty writing. There's also helper functions on State for managing the write list. The `EventLoop` and its `State` are returned when joining with the thread it spawns. This will potentially be helpful once config reloading is introduced. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5a57b362..dc2d2eff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -196,7 +196,7 @@ fn main() { ); let loop_tx = event_loop.channel(); - let event_loop_handle = event_loop.spawn(); + let event_loop_handle = event_loop.spawn(None); // Wraps a renderer and gives simple draw() api. let mut display = Display::new( -- cgit