diff options
Diffstat (limited to 'gdb/tui/tui-wingeneral.h')
-rw-r--r-- | gdb/tui/tui-wingeneral.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/tui/tui-wingeneral.h b/gdb/tui/tui-wingeneral.h index 652cef9..6387afd 100644 --- a/gdb/tui/tui-wingeneral.h +++ b/gdb/tui/tui-wingeneral.h @@ -29,18 +29,20 @@ struct tui_win_info; extern void tui_unhighlight_win (struct tui_win_info *); extern void tui_highlight_win (struct tui_win_info *); -/* An RAII class that suppresses output on construction (calling - wnoutrefresh on the existing windows), and then flushes the output - (via doupdate) when destroyed. */ +/* An RAII class that calls doupdate on destruction (really the + destruction of the outermost instance). This is used to prevent + flickering -- window implementations should only call wnoutrefresh, + and any time rendering is needed, an object of this type should be + instantiated. */ -class tui_suppress_output +class tui_batch_rendering { public: - tui_suppress_output (); - ~tui_suppress_output (); + tui_batch_rendering (); + ~tui_batch_rendering (); - DISABLE_COPY_AND_ASSIGN (tui_suppress_output); + DISABLE_COPY_AND_ASSIGN (tui_batch_rendering); private: |