summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-05-22 01:04:57 +0200
committerJerry Zhang <zhangjerry@google.com>2018-05-30 00:20:58 +0200
commitb31f9ce6d150a264f584d9b38a54da0723fc249c (patch)
tree71b88a713e2aa47e6bdbb54748d14f3fa5d29d54 /screen_ui.h
parentui: Use std::thread to create input/progress threads. (diff)
downloadandroid_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.tar
android_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.tar.gz
android_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.tar.bz2
android_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.tar.lz
android_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.tar.xz
android_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.tar.zst
android_bootable_recovery-b31f9ce6d150a264f584d9b38a54da0723fc249c.zip
Diffstat (limited to '')
-rw-r--r--screen_ui.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/screen_ui.h b/screen_ui.h
index c3605161a..b76d4706e 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -17,7 +17,6 @@
#ifndef RECOVERY_SCREEN_UI_H
#define RECOVERY_SCREEN_UI_H
-#include <pthread.h>
#include <stdio.h>
#include <atomic>
@@ -192,7 +191,6 @@ class ScreenRecoveryUI : public RecoveryUI {
GRSurface* GetCurrentFrame() const;
GRSurface* GetCurrentText() const;
- static void* ProgressThreadStartRoutine(void* data);
void ProgressThreadLoop();
virtual void ShowFile(FILE*);
@@ -297,7 +295,7 @@ class ScreenRecoveryUI : public RecoveryUI {
std::string locale_;
bool rtl_locale_;
- pthread_mutex_t updateMutex;
+ std::mutex updateMutex;
private:
void SetLocale(const std::string&);