diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2015-01-27 15:50:48 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2015-01-27 15:50:48 +0100 |
commit | 1b67fff3616416e7d634c20cc96703883352c504 (patch) | |
tree | 53cedd494a3785785c5c4b0ff92f30f5942b280d /mtp/MtpStorage.h | |
parent | Use TWAtomicInt in gui.cpp to make it thread safe (diff) | |
download | android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.tar android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.tar.gz android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.tar.bz2 android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.tar.lz android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.tar.xz android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.tar.zst android_bootable_recovery-1b67fff3616416e7d634c20cc96703883352c504.zip |
Diffstat (limited to 'mtp/MtpStorage.h')
-rwxr-xr-x | mtp/MtpStorage.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mtp/MtpStorage.h b/mtp/MtpStorage.h index cdbb73b50..245debf60 100755 --- a/mtp/MtpStorage.h +++ b/mtp/MtpStorage.h @@ -28,6 +28,7 @@ #include <pthread.h> #include "btree.hpp" #include "MtpServer.h" +#include "../tw_atomic.hpp" class MtpDatabase; struct inotify_event; @@ -113,7 +114,7 @@ private: bool use_mutex; pthread_mutex_t inMutex; // inotify mutex pthread_mutex_t mtpMutex; // main mtp mutex - int inotify_thread_kill; + TWAtomicInt inotify_thread_kill; }; #endif // _MTP_STORAGE_H |