summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-05-30 02:48:30 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-30 02:48:30 +0200
commit85a007c47c1a8c503c38ac172ac37255456b1587 (patch)
treed2b73f358915b68479535a2956639c4688552297 /screen_ui.h
parentMerge "ui: Use std::thread to create input/progress threads." (diff)
parentrecovery: c++ify pthread use in UI (diff)
downloadandroid_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.tar
android_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.tar.gz
android_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.tar.bz2
android_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.tar.lz
android_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.tar.xz
android_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.tar.zst
android_bootable_recovery-85a007c47c1a8c503c38ac172ac37255456b1587.zip
Diffstat (limited to 'screen_ui.h')
-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&);