summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-01-28 23:07:34 +0100
committerDees Troy <dees_troy@teamw.in>2015-01-30 16:12:21 +0100
commit73a5295f6934065cd43e37e298609ad03f14b878 (patch)
treef8e75adde69de88c37f7faf010c6cbdec410a756 /gui/objects.hpp
parentgui: move input handling into a class (diff)
downloadandroid_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.tar
android_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.tar.gz
android_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.tar.bz2
android_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.tar.lz
android_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.tar.xz
android_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.tar.zst
android_bootable_recovery-73a5295f6934065cd43e37e298609ad03f14b878.zip
Diffstat (limited to '')
-rw-r--r--gui/objects.hpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index bdccc6e42..c95a9356e 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -288,9 +288,11 @@ protected:
std::map<int, bool> mKeys;
protected:
+ enum ThreadType { THREAD_NONE, THREAD_ACTION, THREAD_CANCEL };
+
int getKeyByName(std::string key);
int doAction(Action action);
- bool needsToRunInSeparateThread(const Action& action);
+ ThreadType getThreadType(const Action& action);
void simulate_progress_bar(void);
int flash_zip(std::string filename, int* wipe_cache);
void reinject_after_flash();
@@ -365,25 +367,6 @@ protected:
int simulate;
};
-class ActionThread
-{
-public:
- ActionThread();
- ~ActionThread();
-
- void threadActions(GUIAction *act);
- void run(void *data);
-private:
- struct ThreadData
- {
- GUIAction *act;
- };
-
- pthread_t m_thread;
- bool m_thread_running;
- pthread_mutex_t m_act_lock;
-};
-
class GUIConsole : public GUIObject, public RenderObject, public ActionObject
{
public: