From 94608f2544104e334bb3e60d433c17f93927863c Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Wed, 7 Mar 2007 07:42:23 +0100 Subject: Plan for statusbar/multithreading darcs-hash:20070307064223-a5988-0580a4fe6cc01238e55f00d9dc637212afc3d165 --- TODO | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'TODO') diff --git a/TODO b/TODO index e69de29..0103dac 100644 --- a/TODO +++ b/TODO @@ -0,0 +1,16 @@ +- think about the statusbar/multithreading. + Three shared TVars: + windowTitle :: TVar String + workspace :: TVar Int + statusText :: TVar String + Three threads: + Main thread, handles all of the events that it handles now. When + necessary, it writes to workspace or windowTitle + + Status IO thread, the algorithm is something like this: + forever $ do + s <- getLine + atomic (writeTVar statusText s) + + Statusbar drawing thread, waits for changes in all three TVars, and + redraws whenever it finds a change. -- cgit v1.2.3