Use TWAtomicInt in MTPStorage
Change-Id: I3450fd2334a441c3d9d40a856128a3cc932cb7f3
diff --git a/mtp/MtpStorage.h b/mtp/MtpStorage.h
index cdbb73b..245debf 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 @@
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