aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-23 09:59:06 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-23 11:12:08 +0100
commita80f8dcf2c6eb3b54658218bc081ee9694204dd5 (patch)
tree8342b730def57d7b33bd99d661a087dfe1f715b5 /src/calcurse.h
parente16ac0a8a8c18c831e95e1a0799e919e61f5da48 (diff)
downloadcalcurse-a80f8dcf2c6eb3b54658218bc081ee9694204dd5.tar.gz
calcurse-a80f8dcf2c6eb3b54658218bc081ee9694204dd5.zip
Lock screen when drawing on the calendar/notification panel
Lock the screen if either the calendar panel or the notification bar is updated to avoid race conditions. Addresses BUG#6. Note that we currently always use a screen-level lock, even if only one window is affected. This is to be changed in the future. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index e35fe9a..7a7f4f2 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -975,6 +975,10 @@ void vars_init(void);
/* wins.c */
extern struct window win[NBWINS];
+unsigned wins_nbar_lock(void);
+void wins_nbar_unlock(void);
+unsigned wins_calendar_lock(void);
+void wins_calendar_unlock(void);
int wins_refresh(void);
int wins_wrefresh(WINDOW *);
int wins_doupdate(void);