Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
938:40175f3dcef7 | 939:12fa2ae6445d |
---|---|
63 } keycode; | 63 } keycode; |
64 | 64 |
65 void scr_Getch(keycode *kcode); | 65 void scr_Getch(keycode *kcode); |
66 int process_key(keycode kcode); | 66 int process_key(keycode kcode); |
67 | 67 |
68 inline void scr_DoUpdate(void); | |
69 | |
68 void scr_InitLocaleCharSet(void); | 70 void scr_InitLocaleCharSet(void); |
69 void scr_InitCurses(void); | 71 void scr_InitCurses(void); |
70 void scr_TerminateCurses(void); | 72 void scr_TerminateCurses(void); |
71 void scr_DrawMainWindow(unsigned int fullinit); | 73 void scr_DrawMainWindow(unsigned int fullinit); |
72 void scr_DrawRoster(void); | 74 void scr_DrawRoster(void); |
87 inline const char *scr_get_multiline(void); | 89 inline const char *scr_get_multiline(void); |
88 inline const char *scr_get_multimode_subj(void); | 90 inline const char *scr_get_multimode_subj(void); |
89 | 91 |
90 inline void scr_Beep(void); | 92 inline void scr_Beep(void); |
91 | 93 |
94 unsigned int scr_GetAutoAwayTimeout(); | |
92 void scr_CheckAutoAway(int activity); | 95 void scr_CheckAutoAway(int activity); |
93 | 96 |
94 // For commands... | 97 // For commands... |
95 void scr_RosterTop(void); | 98 void scr_RosterTop(void); |
96 void scr_RosterBottom(void); | 99 void scr_RosterBottom(void); |