Mercurial > ~mikael > mcabber > hg
diff mcabber/src/screen.h @ 939:12fa2ae6445d
Get rid of "busy-waiting" (Christof Meerwald)
This patch from Christof Meerwald, slightly modified, reduces mcabber CPU
usage and the number of context switches per second.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 11 Jul 2006 22:50:48 +0200 |
parents | 3e592fb33aab |
children | fc30221b952d |
line wrap: on
line diff
--- a/mcabber/src/screen.h Sat Jul 08 23:32:49 2006 +0200 +++ b/mcabber/src/screen.h Tue Jul 11 22:50:48 2006 +0200 @@ -65,6 +65,8 @@ void scr_Getch(keycode *kcode); int process_key(keycode kcode); +inline void scr_DoUpdate(void); + void scr_InitLocaleCharSet(void); void scr_InitCurses(void); void scr_TerminateCurses(void); @@ -89,6 +91,7 @@ inline void scr_Beep(void); +unsigned int scr_GetAutoAwayTimeout(); void scr_CheckAutoAway(int activity); // For commands...