forked from organicmaps/organicmaps
thread checker macro
This commit is contained in:
parent
b9ea81f3ab
commit
00ccc44622
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ private:
|
|||
#if defined(DEBUG)
|
||||
#define DECLARE_THREAD_CHECKER(threadCheckerName) ThreadChecker threadCheckerName
|
||||
#define ASSERT_THREAD_CHECKER(threadCheckerName, msg) ASSERT(threadCheckerName.CalledOnOriginalThread(), msg)
|
||||
#define DECLARE_AND_ASSERT_THREAD_CHECKER(msg) { \
|
||||
#define DECLARE_AND_ASSERT_THREAD_CHECKER(msg) \
|
||||
{ \
|
||||
static const ThreadChecker threadChecker; \
|
||||
ASSERT(threadChecker.CalledOnOriginalThread(), (msg)); \
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue