summaryrefslogtreecommitdiffstats
path: root/recovery_ui/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-07-10 19:46:27 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-07-10 19:46:27 +0200
commit33bb113af21edd00d15bbdf843c9cffe2d96ac90 (patch)
treeb2b4793320304924b0b58257c1585a5c68e67b56 /recovery_ui/include
parentMerge "Create a fallback to install from fuse if mmap fails" (diff)
parentAdd a new key_pressed_mutex (diff)
downloadandroid_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.tar
android_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.tar.gz
android_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.tar.bz2
android_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.tar.lz
android_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.tar.xz
android_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.tar.zst
android_bootable_recovery-33bb113af21edd00d15bbdf843c9cffe2d96ac90.zip
Diffstat (limited to 'recovery_ui/include')
-rw-r--r--recovery_ui/include/recovery_ui/ui.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/recovery_ui/include/recovery_ui/ui.h b/recovery_ui/include/recovery_ui/ui.h
index d2ebad25b..a95f935e4 100644
--- a/recovery_ui/include/recovery_ui/ui.h
+++ b/recovery_ui/include/recovery_ui/ui.h
@@ -236,13 +236,16 @@ class RecoveryUI {
std::condition_variable key_queue_cond;
bool key_interrupted_;
int key_queue[256], key_queue_len;
- char key_pressed[KEY_MAX + 1]; // under key_queue_mutex
- int key_last_down; // under key_queue_mutex
- bool key_long_press; // under key_queue_mutex
- int key_down_count; // under key_queue_mutex
- bool enable_reboot; // under key_queue_mutex
- int rel_sum;
+ // key press events
+ std::mutex key_press_mutex;
+ char key_pressed[KEY_MAX + 1];
+ int key_last_down;
+ bool key_long_press;
+ int key_down_count;
+ bool enable_reboot;
+
+ int rel_sum;
int consecutive_power_keys;
bool has_power_key;