From 93020c7553a49419447a0df6110b8dc8b87f3828 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 18 Mar 2019 08:58:40 -0700 Subject: [PATCH] bump glutin sync channel size This is a workaround; need to remove the sync restriction when queuing up work from the gui thread as I occasionally deadlock myself. --- src/frontend/glium/glutinloop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/glium/glutinloop.rs b/src/frontend/glium/glutinloop.rs index e3981432b..b8f5b4b5f 100644 --- a/src/frontend/glium/glutinloop.rs +++ b/src/frontend/glium/glutinloop.rs @@ -40,7 +40,7 @@ fn channel(proxy: EventsLoopProxy) -> (GuiSender, Receiver) { // Set an upper bound on the number of items in the queue, so that // we don't swamp the gui loop; this puts back pressure on the // producer side so that we have a chance for eg: processing CTRL-C - let (tx, rx) = mpsc::sync_channel(12); + let (tx, rx) = mpsc::sync_channel(64); (GuiSender { tx, proxy }, rx) }