summaryrefslogtreecommitdiff
path: root/include/mbgl/util/util.hpp
blob: 2b0fd9cdd51bcfa19f43ef2c0d6842650e9a1b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef MBGL_UTIL_UTIL
#define MBGL_UTIL_UTIL

#ifdef DEBUG

#include <thread>
#define MBGL_STORE_THREAD(tid) const std::thread::id tid = std::this_thread::get_id();
#define MBGL_VERIFY_THREAD(tid) assert(tid == std::this_thread::get_id());

#else

#define MBGL_STORE_THREAD(tid)
#define MBGL_VERIFY_THREAD(tid)

#endif

#endif