diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2016-02-24 17:32:11 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:32:05 +0300 |
commit | 0f1c6a83e490e1f5a80d084628777958064b77ab (patch) | |
tree | b862d88754da4efb71fe3c8fee462b4ee7359184 /base | |
parent | 9db9eaba7f6a1bdd57f4889b4b9717591a89e21a (diff) |
Use THREAD_CHECKER under Android
Diffstat (limited to 'base')
-rw-r--r-- | base/thread_checker.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/base/thread_checker.hpp b/base/thread_checker.hpp index 0381c68254..ebf5f96c3b 100644 --- a/base/thread_checker.hpp +++ b/base/thread_checker.hpp @@ -23,9 +23,7 @@ private: DISALLOW_COPY_AND_MOVE(ThreadChecker); }; -// ThreadChecker checker is not valid on Android. -// UI thread (NV thread) can change it's handle value during app lifecycle. -#if defined(DEBUG) && !defined(OMIM_OS_ANDROID) +#if defined(DEBUG) #define DECLARE_THREAD_CHECKER(threadCheckerName) ThreadChecker threadCheckerName #define ASSERT_THREAD_CHECKER(threadCheckerName, msg) ASSERT(threadCheckerName.CalledOnOriginalThread(), msg) #else |