summaryrefslogtreecommitdiff
path: root/include/mbgl/util/util.hpp
blob: df8613ab70845b72482d90efcd0119a0f9eba106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#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