diff options
author | 2011-10-25 13:45:16 -0200 | |
---|---|---|
committer | 2011-10-26 13:05:23 -0200 | |
commit | 71172ed97cd4cd45c6ae70e594ba351798d11909 (patch) | |
tree | c94ffc88b9ebf64b71531adf6c0028dcc24b9217 /tools/perf/util/ui/ui.h | |
parent | perf ui progress: Reimplement using slang (diff) | |
download | linux-dev-71172ed97cd4cd45c6ae70e594ba351798d11909.tar.xz linux-dev-71172ed97cd4cd45c6ae70e594ba351798d11909.zip |
perf ui: Improve handling sigwinch a bit
No need to unblock it at each ui__getch() and also allow other users to
check if a resize is needed, or force an refresh of terminal dimensions.
The 'force' one shouldn't be needed, but its in a slow path, so leave it
like that for now, I'll revisit this another day.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-aujchu6yx3bfy64non1rky0w@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | tools/perf/util/ui/ui.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/ui/ui.h b/tools/perf/util/ui/ui.h index d264e059c829..7b67045479f6 100644 --- a/tools/perf/util/ui/ui.h +++ b/tools/perf/util/ui/ui.h @@ -2,7 +2,10 @@ #define _PERF_UI_H_ 1 #include <pthread.h> +#include <stdbool.h> extern pthread_mutex_t ui__lock; +void ui__refresh_dimensions(bool force); + #endif /* _PERF_UI_H_ */ |