Files
linux/tools/perf/util/ui/ui.h
T
Arnaldo Carvalho de Melo 71172ed97c 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 <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2011-10-26 13:05:23 -02:00

12 lines
187 B
C

#ifndef _PERF_UI_H_
#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_ */