From 1b67fff3616416e7d634c20cc96703883352c504 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Tue, 27 Jan 2015 08:50:48 -0600 Subject: Use TWAtomicInt in MTPStorage Change-Id: I3450fd2334a441c3d9d40a856128a3cc932cb7f3 --- mtp/MtpStorage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mtp/MtpStorage.h') 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 #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 -- cgit v1.2.3